際際滷
Submit Search
Chapter 11 - Styling Theming
0 likes
146 views
S
Sittiphol Phanvilai
Follow
Chapter 11 - Styling Theming
Read less
Read more
1 of 5
Download now
Download to read offline
More Related Content
Chapter 11 - Styling Theming
1.
Styling & Theming
2.
Styling & Theming <TextView android:layout_width="200dp" android:layout_height="wrap_content" android:text="Hello" android:layout_margin="10dp android:textColor=#000000 android:background="#ffcccc" /> <TextView android:layout_width="200dp" android:layout_height="wrap_content" android:text=World" android:layout_margin="10dp" android:textColor=#000000 android:background=#ffcccc" />
3.
Styling & Theming <TextView android:layout_width="200dp" android:layout_height="wrap_content" android:text="Hello" android:layout_margin="10dp style=@style/TextViewStyle /> <TextView android:layout_width="200dp" android:layout_height="wrap_content" android:text=World android:layout_margin="10dp style=@style/TextViewStyle /> <style
name=TextViewStyle"> <item name="android:textColor">#000000</item> <item name="android:background">#ffcccc</item> </style>
4.
Inheritance <style name=TextViewStyle"> <item name="android:textColor">#000000</item> <item
name="android:background">#ffcccc</item> </style> <style name=TextViewStyle2 parent=TextViewStyle> <item name="android:textColor>#444444</item> </style>
5.
The Applica4ons Theme
Based <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/color_primary</item> <item name="windowActionBar">true</item> </style>
Download