我有一个ExpandableListView
和一个Button
。当我打开列表中的一些项目时,我无法访问按钮,因为列表已扩展。ExpandableListView和滚动
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="match_parent"
>
<ExpandableListView
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:id="@+id/expEnt"
/>
<Button
android:layout_height="wrap_content"
android:layout_width="100dp"
android:text="Plot"
android:layout_below="@id/expEnt"
android:layout_alignParentRight="true"/>
</RelativeLayout>
是否有某种方式来解决这个问题?
layout_heightof的RelativeLayout的应match_parent。但我会建议你使用LinearLayout垂直 –
钢同样的问题 – Vitaliy
你试着与linerlayout ID? –