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"/>