Advertisement
Advertisement

More Related Content

Advertisement
Advertisement

Android Styles

  1. ANDROID STYLES XML for Graphics
  2. ADD A LITTLE STYLE Transform an ordinary layout into something nice.
  3. COLORS.XML Create a color palette.
  4. ADDING COLORS android:background=”@color/white”
  5. STYLES.XML Separate your styles from your program.
  6. SHAPE DRAWABLES A simple gradient
  7. APPLY GRADIENT @drawable/green_grad
  8. UNOPTIMIZED STYLES Applying similar styles to text & buttons.
  9. OPTIMIZE STYLES Combine common attributes. Then apply as parent styles.
  10. STATE LIST DRAWABLE Creating buttons with focus & pressed states.
  11. STATE LIST DRAWABLE Interactive button styles
  12. ADDING ICONS android:drawableLeft=”@drawable/cloud”
  13. ADDING BACKGROUNDS Create drawable-land folder for landscape versions images.
  14. PHONE / TABLET By default, most phone styles are small on tablets. Background images stretch.
  15. TABLET STYLES Add values-xlarge folder. Then add a new styles.xml file with just the styles that are different
  16. TABLET STYLES Styles are adjusted for tablets without affecting phones.
  17. KEEP IN TOUCH • @aviewfrommyseat • frank@aviewfrommyseat.com • frankpanko.com/aa.pdf
Advertisement