i want show piechart
in fragment. following xml have written,
<scrollview android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/background"> <linearlayout android:id="@+id/graphcontainer" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <com.github.mikephil.charting.charts.piechart android:id="@+id/piechart" android:layout_width="match_parent" android:layout_height="match_parent" /> </linearlayout> </scrollview>
the problem is, piechart
not working if give match_parent
or wrap_content
. if give fixed height , width works fine. also, if remove scrollview
, works charm! needs done in case of scrollview
?
Comments
Post a Comment