Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/219.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
Java 从消耗卡视图中删除箭头图标_Java_Android - Fatal编程技术网

Java 从消耗卡视图中删除箭头图标

Java 从消耗卡视图中删除箭头图标,java,android,Java,Android,我正在使用库创建一个消耗卡视图。但我不需要把箭放在右边 我还尝试查找可以删除此项的属性或方法,但找不到任何属性或方法。请帮我解决这个问题。我将非常感激。提前感谢您抽出时间 card.setIcon(空); 但是它只删除左边的图标而不是右边的图标。只需添加这一行android:groupIndicator=“@null” 只需添加这一行android:groupIndicator=“@null” 关于您的主要活动,请使用以下代码 val card : ImageButton = findView

我正在使用库创建一个消耗卡视图。但我不需要把箭放在右边

我还尝试查找可以删除此项的属性或方法,但找不到任何属性或方法。请帮我解决这个问题。我将非常感激。提前感谢您抽出时间

card.setIcon(空);

但是它只删除左边的图标而不是右边的图标。

只需添加这一行
android:groupIndicator=“@null”


只需添加这一行
android:groupIndicator=“@null”


关于您的主要活动,请使用以下代码

val card : ImageButton = findViewById(R.id.card_arrow)
        card.visibility=View.INVISIBL
或从此xml文件中删除图标可展开的\u cardview

 <ImageButton
                android:id="@+id/card_arrow"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginEnd="20dp"
                android:layout_alignParentEnd="true"
                android:background="?selectableItemBackgroundBorderless"
                              android:contentDescription="@string/expandable_card_view_image_content_description"/>

关于您的主要活动,请使用以下代码

val card : ImageButton = findViewById(R.id.card_arrow)
        card.visibility=View.INVISIBL
或从此xml文件中删除图标可展开的\u cardview

 <ImageButton
                android:id="@+id/card_arrow"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginEnd="20dp"
                android:layout_alignParentEnd="true"
                android:background="?selectableItemBackgroundBorderless"
                              android:contentDescription="@string/expandable_card_view_image_content_description"/>