Android Course - Lesson6

532 views

Published on

Lesson 6 of the Android Course by Callum Taylor

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
532
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • This is what we’re going to make today
  • This is what we’re going to make today
  • Styles are another form of resources that you can provide to your activies and views, similarly to how css is used to style html pages.
  • By default in your application you will have a default theme in your res/styles.xml file called “AppTheme”You can see that there are 2 properties, a “name” and a “parent”Name is self explanitory, but parent is a theme that you can override, in this case we’re overriding the Dark Action bar style.So far you have seen something like @android:id/ in this case its just using “android:”, but using “@android:style/” will still work.
  • This theme is applied to all of our activities by being set in the application node. You can set a specific theme for a specific activity by moving it to the activity node.
  • Android Course - Lesson6

    1. 1. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 Android Lesson 6 by Callum Taylor
    2. 2. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 Introduction • All code and presentation slides can be found over at https://github.com/scruffyfox/AndroidCours e • Twitter/app.net/github: @scruffyfox • http://(blog.)callumtaylor.net
    3. 3. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 Introduction https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6
    4. 4. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 What we’re going to make
    5. 5. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 What we’re going to make • Styling • Exporting
    6. 6. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 Styling @style/StyleName
    7. 7. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 Styling
    8. 8. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 Styling
    9. 9. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 Hierarchy AppTheme ActionBarStyle background titleTextStyle background textColor textSize referencedrawable/color drawable/color drawable/color dimension

    ×