簡體   English   中英

更改可擴展列表的樣式

[英]change style of expandable list

我創建我的可擴展列表。 現在我想從下圖更改列表樣式: 在此處輸入圖片說明

  • 到這張照片:

在此處輸入圖片說明

我要更改每個組的圖標,如圖所示。 並更改每組之間的界線。 tnx很多

您可以設置以下屬性:

 <ExpandableListView
    android:id="@+id/ParentLevel"
    android:layout_width="match_parent"
    android:layout_height="fill_parent"
    android:childDivider="@color/white"
    android:choiceMode="singleChoice"
    android:divider="@color/transparent"
    android:dividerHeight="0sp"
    android:groupIndicator="@null"
    android:paddingLeft="10sp"
    android:paddingRight="10sp"
    android:scrollbars="none" >
</ExpandableListView> 

根據需要更改android:divider =“ @ color / transparent” android:dividerHeight =“ 0sp”。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM