我有一个完美的PieChart。但是,我需要在PieChart下面有更多内容 - EditText,Texviews和Buttons。我希望用户能够向下滚动并查看不同的内容。 我在LinearLayout中有一个RelativeLayout,其方向是垂直的但没有显示。
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.mikephil.charting.charts.PieChart
android:id="@+id/pie_chart"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Click me"
/>
</LinearLayout>