Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/204.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android expandlistview箭头_Android - Fatal编程技术网

android expandlistview箭头

android expandlistview箭头,android,Android,我知道如何制作expandedlistview,但我不知道应该使用什么来查看向下和向上的箭头,请怎么做 就像当我打开一个组时,箭头变为向下,当我关闭它时,箭头变为向上 主xml 组xml 子xml 从xml代码中删除此行android:groupIndicator=“@null” <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/

我知道如何制作expandedlistview,但我不知道应该使用什么来查看向下和向上的箭头,请怎么做

就像当我打开一个组时,箭头变为向下,当我关闭它时,箭头变为向上

主xml


组xml

子xml
从xml代码中删除此行
android:groupIndicator=“@null”

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

 <ExpandableListView

    android:id="@+id/ExpList"

    android:layout_height="match_parent"

    android:layout_width="match_parent"

    android:groupIndicator="@null" /> 

</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="55dip"
    android:background="#FF0000"
    android:orientation="vertical" >


    <TextView
        android:id="@+id/tvGroup"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginRight="15dp"
        android:textColor="#000000"
        android:textSize="17dip" />

</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="55dip"
    android:background="#FF0000"
    android:orientation="vertical" >


    <TextView
        android:id="@+id/tvChild"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:textColor="#000000"
        android:textSize="17dip" />

</LinearLayout>