关键属性:
android:layoutDirection=""
当安卓的layoutDirection = “rtl” 时,箭头在右边显示
布局:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/backgroundColor"
android:orientation="vertical">
<ExpandableListView
android:id="@+id/expand_list_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layoutDirection="rtl">
</ExpandableListView>
</LinearLayout>
布局显示:
当机器人:的layoutDirection = “ltr” 时,箭头在左边边显示(默认)
布局文件:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/backgroundColor"
android:orientation="vertical">
<ExpandableListView
android:id="@+id/expand_list_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layoutDirection="ltr">
</ExpandableListView>
</LinearLayout>
布局图片显示:
OK了〜