Super-Size Me

In this chapter, we’ve added a few more dimensions and colors. Let’s define them now so we can get rid of all those errors. First, the dimensions:

ticTacToev2/src/main/res/values/dimens.xml
 
<dimen​ name=​"activity_horizontal_margin"​​>​8dp​</dimen>
 
<dimen​ name=​"activity_vertical_margin"​​>​8dp​</dimen>
 
<dimen​ name=​"tile_size"​​>​30dp​</dimen>
 
<dimen​ name=​"tile_margin"​​>​0dp​</dimen>
 
<dimen​ name=​"tile_padding"​​>​3dp​</dimen>
 
<dimen​ name=​"control_padding"​​>​20dp​</dimen>
 
<dimen​ name=​"small_board_padding"​​>​2dp​</dimen>
 
<dimen​ name=​"small_board_margin"​​>​2dp​</dimen>
 
<dimen​ name=​"elevation_low"​​>​4dp​</dimen>

You may be wondering how I came up all the values for margins, tile sizes, ...

Get Hello, Android, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.