• Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
137
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
4
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    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.

Transcript

  • 1. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 Android Lesson 6 by Callum Taylor
  • 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. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 Introduction https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6
  • 4. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 What we’re going to make
  • 5. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 What we’re going to make • Styling • Exporting
  • 6. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 Styling @style/StyleName
  • 7. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 Styling
  • 8. @scruffyfoxLesson 6 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-6 Styling
  • 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