new(Android UI Patterns) @johanni http://markupartist.com
Twitter for Android
"As many of you know, we’ll soon be open sourcing this application code under the Android Open Source Project. "...
Did they?
NO
So I built my own, last summer I wrote implementations of the action bar and the quick action pattern. And have recently o...
Building Custom Components
JAR files can't hold Android resources and we really don't want to copy-paste resources.
Android Library Projects Holds shared code and resources
At build time the library projects are merged with the application
 
 
Reusable widgets White-label apps Paid and free versions of the same app
developer.android.com/guide/developing/eclipse-adt.html#libraryProject
Action Bar
 
<com.markupartist.android.widget.ActionBar     android:id=&quot;@+id/actionbar&quot;     app:title=&quot;@string/some_titl...
ActionBar ab = (ActionBar)     findViewById(R.id.actionbar); // Assign the home action ab.setHomeAction(new IntentAction( ...
Customization <ul><li><?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?> </li></ul><ul><li><resources> </li></ul><...
Current Status Used in Voddler for Android and in the upcoming version of iglaset.
github.com/johannilsson/android-actionbar
Pull to Refresh
http://screenr.com/RRk
Replaces a standard ListView widget. <ul><li><com.markupartist.android. </li></ul><ul><li>         widget.PullToRefreshLis...
Current Status API Level 8 (2.2) and far from complete
github.com/johannilsson/android-pulltorefresh
Upcoming SlideShare
Loading in...5
×

new Android UI Patterns

2,734

Published on

Short presentation of the current status of the action bar and pull to refresh projects for Android.

Android Library Projects
http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject

Action Bar for Android
https://github.com/johannilsson/android-actionbar

Pull to Refresh for Android
https://github.com/johannilsson/android-pulltorefresh

Presented at GTUG Stockholm 2011-01-20.

Published in: Technology
1 Comment
5 Likes
Statistics
Notes
No Downloads
Views
Total Views
2,734
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
29
Comments
1
Likes
5
Embeds 0
No embeds

No notes for slide

new Android UI Patterns

  1. 1. new(Android UI Patterns) @johanni http://markupartist.com
  2. 2. Twitter for Android
  3. 3. &quot;As many of you know, we’ll soon be open sourcing this application code under the Android Open Source Project. &quot; http://android-developers.blogspot.com/2010/05/twitter-for-android-closer-look-at.html
  4. 4. Did they?
  5. 5. NO
  6. 6. So I built my own, last summer I wrote implementations of the action bar and the quick action pattern. And have recently open sourced the action bar
  7. 7. Building Custom Components
  8. 8. JAR files can't hold Android resources and we really don't want to copy-paste resources.
  9. 9. Android Library Projects Holds shared code and resources
  10. 10. At build time the library projects are merged with the application
  11. 13. Reusable widgets White-label apps Paid and free versions of the same app
  12. 14. developer.android.com/guide/developing/eclipse-adt.html#libraryProject
  13. 15. Action Bar
  14. 17. <com.markupartist.android.widget.ActionBar     android:id=&quot;@+id/actionbar&quot;     app:title=&quot;@string/some_title&quot;     style=&quot;@style/ActionBar&quot;     />
  15. 18. ActionBar ab = (ActionBar)     findViewById(R.id.actionbar); // Assign the home action ab.setHomeAction(new IntentAction(     this,homeIntent, R.drawable.home)); // Add some actions ab.addAction(new IntentAction(     this, shareIntent, R.drawable.share)); ab.addAction(new IntentAction(     this, otherIntent, R.drawable.other));
  16. 19. Customization <ul><li><?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?> </li></ul><ul><li><resources> </li></ul><ul><li>     <color name=&quot;actionbar_separator&quot;> </li></ul><ul><li>         #3A5FCD </li></ul><ul><li>     </color> </li></ul><ul><li>     <color name=&quot;actionbar_background_start&quot;> </li></ul><ul><li>         #3A5FCD </li></ul><ul><li>     </color> </li></ul><ul><li>     <color name=&quot;actionbar_background_end&quot;> </li></ul><ul><li>         #27408B </li></ul><ul><li>     </color> </li></ul><ul><li></resources>  </li></ul>
  17. 20. Current Status Used in Voddler for Android and in the upcoming version of iglaset.
  18. 21. github.com/johannilsson/android-actionbar
  19. 22. Pull to Refresh
  20. 23. http://screenr.com/RRk
  21. 24. Replaces a standard ListView widget. <ul><li><com.markupartist.android. </li></ul><ul><li>         widget.PullToRefreshListView </li></ul><ul><li>     android:id=&quot;@+id/android:list&quot; </li></ul><ul><li>     android:layout_height=&quot;fill_parent&quot; </li></ul><ul><li>     android:layout_width=&quot;fill_parent&quot; </li></ul><ul><li>     /> </li></ul>
  22. 25. Current Status API Level 8 (2.2) and far from complete
  23. 26. github.com/johannilsson/android-pulltorefresh
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×