Upload
javalabsf
View
3.334
Download
1
Embed Size (px)
DESCRIPTION
By Rémy Loubradou, SUPINFO San Francisco 2011
Citation preview
Sexy App
Practices to create a sexy app
Powered by SUPINFO Java Lab SF
Roadmap
I) IntroductionII) Create a custom ActionBarIII) Create a custom widget
Introduction
• I want to build sexy app ! Easy ?o http://www.androidpatterns.como https://github.com/johannilsson/android-actionbar
Create a custom ActionBar
• With joh annilssono https://github.com/johannilsson/android-actionbar
• Attach the libray to our project.o Properties > Android > Library
Create a custom ActionBar
• Declare ActionBar in the layout o Example: activity_home.xml
• Add Action in the ActionBar in your Activity
Create a custom Button
1) Create a class extending RelativeLayout and implementing OnClickListener• Example: Class UnitSelector in Bar Project
2) Create xml layout of my custom Button• Example: layout/unitselector.xml
Create a custom Button
3) Use System service Layout Inflater for add the xml layout in my class• Example: Class UnitSelector
Create a custom Button
4) Add my custom to the main layout of my Activity• Example: activity_home.xml in Bar Project
Questions
Sources
• http://developer.android.com/• Professional Android 2 - Application Development - Wrox