我无法删除Expandable listview的Group标题图标,任何人都可以告诉我如何在xml中将其设置为null.
更新
<ExpandableListView android:id="@+id/elist"
android:layout_marginTop="1dip" android:layout_weight="1"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:fastScrollEnabled="true" android:scrollbarSize="4dip"
android:smoothScrollbar="true" android:scrollbars="horizontal"
android:groupIndicator="@null" />
Run Code Online (Sandbox Code Playgroud)
和我的组头我正在使用以下xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ImageView android:id="@+id/ImageView01"
android:layout_height="wrap_content" android:src="@drawable/zimbabwe"
android:layout_width="wrap_content"
android:layout_marginLeft="10dip">
</ImageView>
<TextView android:id="@+id/childname"
android:paddingLeft="35dip" android:textSize="16dip"
android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
但它不适合我
我SimpleExpandableListAdapter是:
SimpleExpandableListAdapter expListAdapter = new SimpleExpandableListAdapter( this,
createBetGroupList("spot"),
R.layout.group_row, new String[] { "BetGroup" },
new int[] { R.id.childname }, createBetChildList("spot") ,
R.layout.child_row, new String[] { "betText","betRate","betID" },
new int[] { R.id.txtBetText, R.id.txtdecRate,R.id.txtstrBetID} );
Run Code Online (Sandbox Code Playgroud)
rek*_*eru 67
您应该在布局xml文件中设置groupIndicator为null:
<ExpandableListView [...]
android:groupIndicator="@null" />
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14070 次 |
| 最近记录: |