Android - default button style

前端 未结 2 1763
说谎
说谎 2020-12-12 13:05

Question: Where can I find default styles xml with hexadecimal codes of colors?

I\'m looking for Style \'buttonStyle\' and other default styles witc

2条回答
  •  渐次进展
    2020-12-12 13:52

    You can find default styles of android widgets when you declare in XML:

    style="@android:style/Widget.Button" - standard Button
    style="@android:style/Widget.TextView" - standard TextView
    

    For example this is style of default button:

        
    

    background of default button:

    
        
        
        
        
        
        
        
     
    

    You can get the default color with the help of any graphics editor: path to default button NinePatch ..\android-sdk\platforms\android-13\data\res\drawable-hdpi

提交回复
热议问题