code for Gov & NGO • Trainer • Java Ecosystem mainly • Android Developer & Advocate since 2011 • GDG Kinshasa Lead • Frenchie...but can speak swahili and a bit of English
If you have a lots of views in your layout and you want to optimize it by drawing a single custom view to make it lighter. • A big view hierarchy that is complex to operate and support. • A complete custom view that requires manually drawing.
a user of the library expects it to do without having to look up the documentation. • Consistent: The code for the Android library should be well thought out and should not change drastically between versions. Follows semantic versioning. • Easy to use, hard to misuse: It should be easily understandable in terms of implementation and its usage.
permission you add to your Android library’s AndroidManifest.xml file will get merged into the app that adds the Android library as a dependency ! Do not let your code crash just because you do not have a particular permission. Use this method to check if a particular permission granted or not: