SlideShare a Scribd company logo
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 Pavlasek
Michal Pavlasek
 
Penamaan resistor pada Eagle
Penamaan resistor pada EaglePenamaan resistor pada Eagle
Penamaan resistor pada Eagle
Sunu Pradana
 
Fresnel & diffraction
Fresnel & diffractionFresnel & diffraction
Fresnel & diffraction
Trisha Banerjee
 
Lateral shift
Lateral shiftLateral shift
Lateral shift
Zenblade 93
 
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
Sharan Raj
 
Light Dependent Resistor
Light Dependent ResistorLight Dependent Resistor
Light Dependent Resistor
Bibhu Prasad Sahu
 
Resistor and its types
Resistor and its typesResistor and its types
Resistor and its types
Sumeet 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+

React native
React nativeReact native
Objective-C & iPhone for .NET Developers
Objective-C & iPhone for .NET DevelopersObjective-C & iPhone for .NET Developers
Objective-C & iPhone for .NET Developers
Ben Scheirman
 
How to Reverse Engineer Web Applications
How to Reverse Engineer Web ApplicationsHow to Reverse Engineer Web Applications
How to Reverse Engineer Web Applications
Jarrod Overson
 
Design patterns
Design patternsDesign patterns
Design patterns
Jason Austin
 
Aug penguin16
Aug penguin16Aug penguin16
Aug penguin16
alhino
 
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
Diego Freniche Brito
 
Make Mobile Apps Quickly
Make Mobile Apps QuicklyMake Mobile Apps Quickly
Make Mobile Apps Quickly
Gil Irizarry
 
Android programming-basics
Android programming-basicsAndroid programming-basics
Android programming-basics
Aravindharamanan S
 
Action bar & ActionBarSherlock
Action bar & ActionBarSherlockAction bar & ActionBarSherlock
Action bar & ActionBarSherlock
Zahid Ali Shah
 
Artdm170 Week5 Intro To Flash
Artdm170 Week5 Intro To FlashArtdm170 Week5 Intro To Flash
Artdm170 Week5 Intro To Flash
Gilbert Guerrero
 
Supercharge your ui
Supercharge your uiSupercharge your ui
Supercharge your ui
Dominik Helleberg
 
IoC&Laravel
IoC&LaravelIoC&Laravel
IoC&Laravel
Hoang Long
 
WebObjects Developer Tools
WebObjects Developer ToolsWebObjects Developer Tools
WebObjects Developer Tools
WO Community
 
Android Workshop 2013
Android Workshop 2013Android Workshop 2013
Android Workshop 2013
Junda Ong
 
Developing jQuery Plugins with Ease
Developing jQuery Plugins with EaseDeveloping jQuery Plugins with Ease
Developing jQuery Plugins with Ease
westhoff
 
Android Support Library: Using ActionBarCompat
Android Support Library: Using ActionBarCompatAndroid Support Library: Using ActionBarCompat
Android Support Library: Using ActionBarCompat
cbeyls
 
JavaScript
JavaScriptJavaScript
JavaScript
StrasWeb
 
iOS developer toolbox
iOS developer toolboxiOS developer toolbox
iOS developer toolbox
defagos
 
React Native & NativeScript
React Native & NativeScriptReact Native & NativeScript
React Native & NativeScript
ElifTech
 
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
 

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

Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 

Recently uploaded (20)

Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 

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