Useful Android
Libraries
Tomáš Kypta
Libraries
• saves time and work
• it might be painful without libraries
• back-porting new API to older Android versions
•...
Libraries
• The ideal library?
• “perform one task and perform it well”
• open-source
Dialogs
• Why do we need a library for dialogs?
Dialogs
Dialogs
• Let’s simplify
• android-styled-dialogs
Dialogs
• android-styled-dialogs
• backports dialogs in Holo theme
• makes styling and using dialogs a piece of cake
Dialogs
Pull-to-refresh
• ActionBar-PullToRefresh
Swipe-to-dismiss
Swipe-to-dismiss with Undo
Swipe-to-dismiss
• Android-SwipeToDismiss
• SwipeToDismissNOA
• backport to Android 2.x
• SwipeToDismissUndoList
• with un...
REST API
• Retrofit
• simple REST client for Android and Java
• synchronous
• asynchronous
• observable (RxJava)
Image loaders
• displaying images from web
Image loaders
• Volley
• NetworkImageView
• Picasso
• easy to use
• Android-Universal-Image-Loader
• powerful and flexible ...
View Injection
• getting rid of boilerplate code
• TextView title = (TextView)
findViewById(R.id.title);!
• Butter Knife
•...
Dependency injection
• Dagger
Event bus
• Otto
• Guava based event bus
IntelliJ IDEA plugins
• android-selector-chapek
• generates drawable selectors from appropriately
named Android resources
IntelliJ IDEA plugins
• android-butterknife-zelezny
• allows one-click creation of Butterknife view
injections
UI debugging
• android-grid-wichterle
• app that shows grid overlay
• helps to verify app design
UI debugging
• Scalpel
• debugging tool to uncover
the layers under our app
UI niceties
• Crouton
Unit testing
• Roboelectric
• fest-android
• FEST assertions geared toward testing Android
Developing Libraries
Developing Libraries
• jar
• so
• apklib
• aar
Developing Libraries
• How to publish?
• Maven Central Repository
THE END
Upcoming SlideShare
Loading in …5
×

Android Libraries

788 views

Published on

Lecture about useful Android libraries. aDevMeetup #13, 2014

Published in: Technology, Education
0 Comments
13 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
788
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
22
Comments
0
Likes
13
Embeds 0
No embeds

No notes for slide

Android Libraries

  1. 1. Useful Android Libraries Tomáš Kypta
  2. 2. Libraries • saves time and work • it might be painful without libraries • back-porting new API to older Android versions • simplifying API
  3. 3. Libraries • The ideal library? • “perform one task and perform it well” • open-source
  4. 4. Dialogs • Why do we need a library for dialogs?
  5. 5. Dialogs
  6. 6. Dialogs • Let’s simplify • android-styled-dialogs
  7. 7. Dialogs • android-styled-dialogs • backports dialogs in Holo theme • makes styling and using dialogs a piece of cake
  8. 8. Dialogs
  9. 9. Pull-to-refresh • ActionBar-PullToRefresh
  10. 10. Swipe-to-dismiss
  11. 11. Swipe-to-dismiss with Undo
  12. 12. Swipe-to-dismiss • Android-SwipeToDismiss • SwipeToDismissNOA • backport to Android 2.x • SwipeToDismissUndoList • with undo
  13. 13. REST API • Retrofit • simple REST client for Android and Java • synchronous • asynchronous • observable (RxJava)
  14. 14. Image loaders • displaying images from web
  15. 15. Image loaders • Volley • NetworkImageView • Picasso • easy to use • Android-Universal-Image-Loader • powerful and flexible library
  16. 16. View Injection • getting rid of boilerplate code • TextView title = (TextView) findViewById(R.id.title);! • Butter Knife • @InjectView(R.id.title) TextView title;! • can’t be used in libraries
  17. 17. Dependency injection • Dagger
  18. 18. Event bus • Otto • Guava based event bus
  19. 19. IntelliJ IDEA plugins • android-selector-chapek • generates drawable selectors from appropriately named Android resources
  20. 20. IntelliJ IDEA plugins • android-butterknife-zelezny • allows one-click creation of Butterknife view injections
  21. 21. UI debugging • android-grid-wichterle • app that shows grid overlay • helps to verify app design
  22. 22. UI debugging • Scalpel • debugging tool to uncover the layers under our app
  23. 23. UI niceties • Crouton
  24. 24. Unit testing • Roboelectric • fest-android • FEST assertions geared toward testing Android
  25. 25. Developing Libraries
  26. 26. Developing Libraries • jar • so • apklib • aar
  27. 27. Developing Libraries • How to publish? • Maven Central Repository
  28. 28. THE END

×