Android: How to adjust Margin/Padding in Preference?

前端 未结 5 1504
长情又很酷
长情又很酷 2020-12-08 22:26

Before I asked to remove the padding of the PreferenceActivity/PreferenceFragment:

Android: How to maximize PreferenceFragment width (or get rid of margin)?

5条回答
  •  囚心锁ツ
    2020-12-08 23:15

    You could customize you checkbox like this: MyPreference.xml

    
    
    

    and custom_checkbox_preference_layout.xml

    
    
    
        
            
        
    
        
    
            
    
            
    
        
    
        
        
    
    
    

    the point is android:minWidth="0dp".

提交回复
热议问题