SlideShare a Scribd company logo
1 of 14
Download to read 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

More Related Content

Viewers also liked

Android code 2013 - Michal Pavlasek
Android code 2013 - Michal PavlasekAndroid code 2013 - Michal Pavlasek
Android code 2013 - Michal PavlasekMichal Pavlasek
 
Penamaan resistor pada Eagle
Penamaan resistor pada EaglePenamaan resistor pada Eagle
Penamaan resistor pada EagleSunu Pradana
 
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 indexSharan Raj
 
Resistor and its types
Resistor and its typesResistor and its types
Resistor and its typesSumeet Patel
 

Viewers also liked (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
 

Similar to ActionBar and Holo in Android 2+

Objective-C & iPhone for .NET Developers
Objective-C & iPhone for .NET DevelopersObjective-C & iPhone for .NET Developers
Objective-C & iPhone for .NET DevelopersBen Scheirman
 
How to Reverse Engineer Web Applications
How to Reverse Engineer Web ApplicationsHow to Reverse Engineer Web Applications
How to Reverse Engineer Web ApplicationsJarrod Overson
 
Aug penguin16
Aug penguin16Aug penguin16
Aug penguin16alhino
 
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 2013Diego Freniche Brito
 
Make Mobile Apps Quickly
Make Mobile Apps QuicklyMake Mobile Apps Quickly
Make Mobile Apps QuicklyGil Irizarry
 
Action bar & ActionBarSherlock
Action bar & ActionBarSherlockAction bar & ActionBarSherlock
Action bar & ActionBarSherlockZahid Ali Shah
 
Artdm170 Week5 Intro To Flash
Artdm170 Week5 Intro To FlashArtdm170 Week5 Intro To Flash
Artdm170 Week5 Intro To FlashGilbert Guerrero
 
WebObjects Developer Tools
WebObjects Developer ToolsWebObjects Developer Tools
WebObjects Developer ToolsWO Community
 
Android Workshop 2013
Android Workshop 2013Android Workshop 2013
Android Workshop 2013Junda Ong
 
Developing jQuery Plugins with Ease
Developing jQuery Plugins with EaseDeveloping jQuery Plugins with Ease
Developing jQuery Plugins with Easewesthoff
 
Android Support Library: Using ActionBarCompat
Android Support Library: Using ActionBarCompatAndroid Support Library: Using ActionBarCompat
Android Support Library: Using ActionBarCompatcbeyls
 
JavaScript
JavaScriptJavaScript
JavaScriptStrasWeb
 
iOS developer toolbox
iOS developer toolboxiOS developer toolbox
iOS developer toolboxdefagos
 
React Native & NativeScript
React Native & NativeScriptReact Native & NativeScript
React Native & NativeScriptElifTech
 
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 2011Anton Arhipov
 

Similar to 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
 

Recently uploaded

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
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?Igalia
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
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 2024Rafal Los
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
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 CVKhem
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 

Recently uploaded (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
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?
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
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
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

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