A sample project that shows a creation of simple android library and its use
An Android library project with 2 main functions as below -
- Method to create an instance of the library.
- Method to convert a drawable asset to Bitmap
A Sample app that shows use of MVVM pattern using LiveData,Data Binding,ViewModel with below functionalities -
-
The app lists the names of the Drawables/vectors in the Assets/Drawables folder.
-
One should be able to select the Drawable by its name and on the click of a button it should display the Bitmap on an ImageView.
-
Use the Instance creation method to initialize the library and using the library instance, use the method to convert the Drawable to Bitmap and display it on an imageview.