SlideShare uma empresa Scribd logo
1 de 14
Baixar para ler offline
Design like ICS, Holo for
      Android 2+



Use action bar and HOLO theme
   in Android 2+ applications


      Michal CoPLaS Pavlasek
      www.pavlasek.sk/devel/
       twitter.com/pavlasek
About me

●
    Java, Android, Grails (etc...) developer

●   I'm not creator of ActionBarSkerlock or

HoloEverywhere

●   Just fan of it
ActionBarSherlock

     Extension of the compatibility library.

Action bar design pattern across all versions of
           Android with a single API.

         http://actionbarsherlock.com/
HoloEverywhere


     Port of Holo Theme to Android 1.6+

https://github.com/ChristopheVersieux/HoloEverywhere
ActionBarSherlock
●   Eclipse: include ActionBarSherlock as a library
project
●   Activity extends Sherlock* - SherlockActivity,
SherlockFragmentActivity
Interaction with the action bar is handled by
●



calling getSupportActionBar() (instead of
getActionBar()).
ActionBarSherlock
                      Theming:
●   requires a set of default themes, one of which
    must be applied to each activity on which you
    want the action bar present
●   Theme.Sherlock, Theme.Sherlock.Light, or
    Theme.Sherlock.Light.DarkActionBar
ActionBarSherlock
                            Imports:
●   Includes and uses a lot of classes that are
    named the same as their native counterparts
    ●   com.actionbarsherlock.app.ActionBar
    ●   com.actionbarsherlock.view.Menu
    ●   com.actionbarsherlock.view.MenuItem
    ●   com.actionbarsherlock.view.MenuInflater
ActionBarSherlock

                      Examples:
@Override
public boolean onCreateOptionsMenu(final Menu menu) {
   final MenuInflater inflater = getSupportMenuInflater();
    inflater.inflate(R.menu.only_info2, menu);
    return true;
}
ActionBarSherlock
ActionBarSherlock
Use <item   name="absForceOverflow">true</item>   in style...
HoloEverywhere
         Port of Holo Theme to Android 1.6+

                        Themes:
●   Theme.HoloEverywhereDark
●   Theme.HoloEverywhereLight
●   Theme.HoloEverywhereDark.Sherlock
●   Theme.HoloEverywhereLight.Sherlock
HoloEverywhere
    Examples:
HoloEverywhere
    Examples:
More info

                ActionBarSherlock:
          http://actionbarsherlock.com/
         https://twitter.com/JakeWharton

                HoloEverywhere:
https://github.com/ChristopheVersieux/HoloEverywhere

Mais conteúdo relacionado

Destaque (7)

Android code 2013 - Michal Pavlasek
Android code 2013 - Michal PavlasekAndroid code 2013 - Michal Pavlasek
Android code 2013 - Michal Pavlasek
 
Penamaan resistor pada Eagle
Penamaan resistor pada EaglePenamaan resistor pada Eagle
Penamaan resistor pada Eagle
 
Fresnel & diffraction
Fresnel & diffractionFresnel & diffraction
Fresnel & diffraction
 
Lateral shift
Lateral shiftLateral shift
Lateral shift
 
Refraction through a glass slab and the refractive index
Refraction through a glass slab and the refractive indexRefraction through a glass slab and the refractive index
Refraction through a glass slab and the refractive index
 
Light Dependent Resistor
Light Dependent ResistorLight Dependent Resistor
Light Dependent Resistor
 
Resistor and its types
Resistor and its typesResistor and its types
Resistor and its types
 

Semelhante a ActionBar and Holo in Android 2+

Make Mobile Apps Quickly
Make Mobile Apps QuicklyMake Mobile Apps Quickly
Make Mobile Apps Quickly
Gil Irizarry
 
Artdm170 Week5 Intro To Flash
Artdm170 Week5 Intro To FlashArtdm170 Week5 Intro To Flash
Artdm170 Week5 Intro To Flash
Gilbert Guerrero
 
WebObjects Developer Tools
WebObjects Developer ToolsWebObjects Developer Tools
WebObjects Developer Tools
WO Community
 
Java Bytecode for Discriminating Developers - JavaZone 2011
Java Bytecode for Discriminating Developers - JavaZone 2011Java Bytecode for Discriminating Developers - JavaZone 2011
Java Bytecode for Discriminating Developers - JavaZone 2011
Anton Arhipov
 

Semelhante a ActionBar and Holo in Android 2+ (20)

React native
React nativeReact native
React native
 
Objective-C & iPhone for .NET Developers
Objective-C & iPhone for .NET DevelopersObjective-C & iPhone for .NET Developers
Objective-C & iPhone for .NET Developers
 
How to Reverse Engineer Web Applications
How to Reverse Engineer Web ApplicationsHow to Reverse Engineer Web Applications
How to Reverse Engineer Web Applications
 
Design patterns
Design patternsDesign patterns
Design patterns
 
Aug penguin16
Aug penguin16Aug penguin16
Aug penguin16
 
Core data intermediate Workshop at NSSpain 2013
Core data intermediate Workshop at NSSpain 2013Core data intermediate Workshop at NSSpain 2013
Core data intermediate Workshop at NSSpain 2013
 
Make Mobile Apps Quickly
Make Mobile Apps QuicklyMake Mobile Apps Quickly
Make Mobile Apps Quickly
 
Android programming-basics
Android programming-basicsAndroid programming-basics
Android programming-basics
 
Action bar & ActionBarSherlock
Action bar & ActionBarSherlockAction bar & ActionBarSherlock
Action bar & ActionBarSherlock
 
Artdm170 Week5 Intro To Flash
Artdm170 Week5 Intro To FlashArtdm170 Week5 Intro To Flash
Artdm170 Week5 Intro To Flash
 
Supercharge your ui
Supercharge your uiSupercharge your ui
Supercharge your ui
 
IoC&Laravel
IoC&LaravelIoC&Laravel
IoC&Laravel
 
WebObjects Developer Tools
WebObjects Developer ToolsWebObjects Developer Tools
WebObjects Developer Tools
 
Android Workshop 2013
Android Workshop 2013Android Workshop 2013
Android Workshop 2013
 
Developing jQuery Plugins with Ease
Developing jQuery Plugins with EaseDeveloping jQuery Plugins with Ease
Developing jQuery Plugins with Ease
 
Android Support Library: Using ActionBarCompat
Android Support Library: Using ActionBarCompatAndroid Support Library: Using ActionBarCompat
Android Support Library: Using ActionBarCompat
 
JavaScript
JavaScriptJavaScript
JavaScript
 
iOS developer toolbox
iOS developer toolboxiOS developer toolbox
iOS developer toolbox
 
React Native & NativeScript
React Native & NativeScriptReact Native & NativeScript
React Native & NativeScript
 
Java Bytecode for Discriminating Developers - JavaZone 2011
Java Bytecode for Discriminating Developers - JavaZone 2011Java Bytecode for Discriminating Developers - JavaZone 2011
Java Bytecode for Discriminating Developers - JavaZone 2011
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

ActionBar and Holo in Android 2+

  • 1. Design like ICS, Holo for Android 2+ Use action bar and HOLO theme in Android 2+ applications Michal CoPLaS Pavlasek www.pavlasek.sk/devel/ twitter.com/pavlasek
  • 2. About me ● Java, Android, Grails (etc...) developer ● I'm not creator of ActionBarSkerlock or HoloEverywhere ● Just fan of it
  • 3. ActionBarSherlock Extension of the compatibility library. Action bar design pattern across all versions of Android with a single API. http://actionbarsherlock.com/
  • 4. HoloEverywhere Port of Holo Theme to Android 1.6+ https://github.com/ChristopheVersieux/HoloEverywhere
  • 5. ActionBarSherlock ● Eclipse: include ActionBarSherlock as a library project ● Activity extends Sherlock* - SherlockActivity, SherlockFragmentActivity Interaction with the action bar is handled by ● calling getSupportActionBar() (instead of getActionBar()).
  • 6. ActionBarSherlock Theming: ● requires a set of default themes, one of which must be applied to each activity on which you want the action bar present ● Theme.Sherlock, Theme.Sherlock.Light, or Theme.Sherlock.Light.DarkActionBar
  • 7. ActionBarSherlock Imports: ● Includes and uses a lot of classes that are named the same as their native counterparts ● com.actionbarsherlock.app.ActionBar ● com.actionbarsherlock.view.Menu ● com.actionbarsherlock.view.MenuItem ● com.actionbarsherlock.view.MenuInflater
  • 8. ActionBarSherlock Examples: @Override public boolean onCreateOptionsMenu(final Menu menu) { final MenuInflater inflater = getSupportMenuInflater(); inflater.inflate(R.menu.only_info2, menu); return true; }
  • 10. ActionBarSherlock Use <item name="absForceOverflow">true</item> in style...
  • 11. HoloEverywhere Port of Holo Theme to Android 1.6+ Themes: ● Theme.HoloEverywhereDark ● Theme.HoloEverywhereLight ● Theme.HoloEverywhereDark.Sherlock ● Theme.HoloEverywhereLight.Sherlock
  • 12. HoloEverywhere Examples:
  • 13. HoloEverywhere Examples:
  • 14. More info ActionBarSherlock: http://actionbarsherlock.com/ https://twitter.com/JakeWharton HoloEverywhere: https://github.com/ChristopheVersieux/HoloEverywhere