Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
? @KeithYokoma - Drivemode, Inc. potatotips #14
Slide 2
Slide 2 text
KeithYokoma Keishin Yokomaku Drivemode, Inc. Android Engineer GitHub: https://github.com/KeithYokoma Qiita: http://qiita.com/KeithYokoma e-Book: http://amzn.to/1mZNydv
Slide 3
Slide 3 text
?
Slide 4
Slide 4 text
Slide 5
Slide 5 text
Slide 6
Slide 6 text
Slide 7
Slide 7 text
?
Slide 8
Slide 8 text
Referencing style attributes Allows us to reference the value of the attribute in the currently-applied theme. Format: ?[:][/]
Slide 9
Slide 9 text
<item name=“android:listPreferredItemHeight”>64dp</item>
Slide 10
Slide 10 text
<item name=“android:listPreferredItemHeight”>64dp</item>
Slide 11
Slide 11 text
<item name=“android:listPreferredItemHeight”>64dp</item>
Slide 12
Slide 12 text
Your own “?”
Slide 13
Slide 13 text
Slide 14
Slide 14 text
Slide 15
Slide 15 text
<item name=“my_custom_attribute”>64dp</item>
Slide 16
Slide 16 text
<item name=“my_custom_attribute”>64dp</item>
Slide 17
Slide 17 text
<item name=“my_custom_attribute”>64dp</item>
Slide 18
Slide 18 text
Abstract Theme Using style attributes reference. ✓ Reduce costs to change styles ✓ Reusable styling
Slide 19
Slide 19 text
themes_holo.xml <—— … ——> <item name="colorPrimary">@color/holo_primary</item> <item name=“colorEdgeEffect”>?attr/colorPrimary</item> <—— … ——>
Slide 20
Slide 20 text
themes_holo.xml <—— … ——> <item name="colorPrimary">@color/holo_light_primary</item> <—— … ——>
Slide 21
Slide 21 text
themes_holo.xml <—— … ——> <item name="colorPrimary">@color/holo_light_primary</item> <—— … ——>
Slide 22
Slide 22 text
–Ryan Brush “Code is design”
Slide 23
Slide 23 text
? @KeithYokoma - Drivemode, Inc. potatotips #14