いくつかの要素を含む LinearLayout を含むメインの Scrollview レイアウトがあります。
- ExpandableListView #1 (まだ 1 つの子)
- テキストビュー
- ExpandableListView #2 (まだ 1 つの子)
- いくつかのテキスト ビュー
私が遭遇する問題は、ExpandableListView のいずれかをクリックすると、表示自体が展開されないことです。
このスクリーン キャプチャで展開されていないビューを確認できます (まだクリックされていません)。
https://plus.google.com/photos/101037819512700772601/albums/5870915782494751761/5870915784486932322
このスクリーン キャプチャで、(ExpandableListViews をクリックすると) ビューが展開されていることがわかります。
https://plus.google.com/photos/101037819512700772601/albums/5870915782494751761/5870915780856077570
そこに私のレイアウトがあります:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<ExpandableListView
android:id="@+id/expandableView"
android:layout_width="match_parent"
android:layout_height="match_parent">
</ExpandableListView>
<TextView
android:id="@+id/providerNameView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:text="ABCDEF1"
android:textSize="25sp"
android:textStyle="bold" />
<ExpandableListView
android:id="@+id/expandableView2"
android:layout_width="match_parent"
android:layout_height="match_parent">
</ExpandableListView>
<TextView
android:id="@+id/providerNameView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:text="ABCDEF2"
android:textSize="25sp"
android:textStyle="bold" />
. . .
</LinearLayout>
</ScrollView>
私の問題の解決策はありますか?