11
Sexy App Practices to create a sexy app Powered by SUPINFO Java Lab SF

Create a sexy Android application

Embed Size (px)

DESCRIPTION

By Rémy Loubradou, SUPINFO San Francisco 2011

Citation preview

Page 1: Create a sexy Android application

Sexy App 

Practices to create a sexy app

Powered by SUPINFO Java Lab SF

Page 2: Create a sexy Android application

Speaker

• Remy Loubradou

• Twitter: @lbdremy

• Email: [email protected]

Page 3: Create a sexy Android application

Roadmap

I) IntroductionII) Create a custom ActionBarIII) Create a custom widget

Page 4: Create a sexy Android application

Introduction

• I want to build sexy app ! Easy ?o http://www.androidpatterns.como https://github.com/johannilsson/android-actionbar

Page 5: Create a sexy Android application

Create a custom ActionBar

• With joh annilssono https://github.com/johannilsson/android-actionbar

• Attach the libray to our project.o Properties > Android > Library

Page 6: Create a sexy Android application

Create a custom ActionBar

• Declare ActionBar in the layout o Example: activity_home.xml

• Add Action in the ActionBar in your Activity

Page 7: Create a sexy Android application

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

Page 8: Create a sexy Android application

Create a custom Button

3) Use System service Layout Inflater for add the xml layout in my class• Example: Class UnitSelector

Page 9: Create a sexy Android application

Create a custom Button

4) Add my custom to the main layout of my Activity• Example: activity_home.xml in Bar Project

Page 10: Create a sexy Android application

Questions

Page 11: Create a sexy Android application

Sources

• http://developer.android.com/• Professional Android 2 - Application Development - Wrox