style  Theme 
   共同点:(1)定义的方式是一样的 
   不同点:(1)style作用范围比较窄 (控件 button textview)  theme 作用在activity或者Application节点下
 
    <style name="my_style">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textColor">#ff0000</item>
        <item name="android:textSize">45sp</item>
        
    </style>
    <style name="my_theme">
        <item name="android:background">#ff0000</item>
        
    </style>

 

相关文章:

  • 2021-10-08
  • 2022-12-23
  • 2021-08-17
  • 2022-01-07
  • 2022-12-23
  • 2021-08-02
  • 2021-11-06
猜你喜欢
  • 2021-09-30
  • 2021-10-24
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2022-02-23
相关资源
相似解决方案