我的问题是这个;
我有一个只有1组的expandableListView(用于扩展子视图的效果)在我的布局上面,并且它下面有一些视图/小部件(不提供子视图)。通过使用layout_weight,所有窗口小部件都使用屏幕高度%100。当它被展开时,一些视图被推到屏幕的底部,这很好只要我可以滚动它们但我不能。因为我无法使用具有可展开列表视图的滚动视图,因此在扩展组时无法访问/查看它们(屏幕下的那些)。
除了使用expandablelist视图外,我如何从其他窗口小部件或自定义代码中获得扩展效果?
我的布局
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"
android:id="@+id/mainLL">
<ExpandableListView
android:layout_width="match_parent" android:layout_marginTop = "10dp"
android:layout_height="wrap_content"
android:id="@+id/expandableStudentList">
<TextView
android:layout_width="match_parent" android:textSize="18sp"
android:layout_height="wrap_content"
android:text="Lorem ipsum duromet"/>
<Button
android:layout_width="match_parent" android:text="Save"
android:layout_height="wrap_content" android:id="@+id/save2"/>
</ExpandableListView>// Not supported this way I must move two widgets to outside
</LinearLayout>