android set divider padding for preference screen

后端 未结 4 1616
清歌不尽
清歌不尽 2021-01-05 04:37

I have PreferenceScreen contain many CheckBox , i customize it by refer it to custom layout as bellow :

 
 &         


        
4条回答
  •  说谎
    说谎 (楼主)
    2021-01-05 05:14

    You have to create your custom drawable-shape

    custom_divider.xml

    
        
        
    
    

    set this as divider for your ListView in xml

    activity_list.xml

    
    

提交回复
热议问题