How to set checkbox border color

前端 未结 5 1137
南笙
南笙 2020-12-14 15:17

The checkbox border is invisible on white background.

\"enter

I played with di

5条回答
  •  再見小時候
    2020-12-14 16:23

    Did you try going through here, here and here?
    And as per answering your question

    But why checkbox does not look okay in usual xml
    

    Thats because sometimes, the android graphical view is not able to render the custom views, in that case you need to run the code on the emulator or the device to test it out.

    UPDATE In case you dont want to use drawables, then you can also define the drawable shape in xml like

     
        
    
            
            
    
            
            
    
    
        
        
    

提交回复
热议问题