| Start |
|---|
| Tint a drawable A drawable can be tinted a certain color. This is useful for supporting different themes within your application, and reducing the number of drawable resource files. Using framework APIs on SDK 21+: Using android.support.v4 library on SDK 4+: Please not that You can replace usages of When targetting older API's: Or on newer targets: |
| Custom Drawable Extend your class with Drawable and override these methods Declare a ImageView in your layout Set your custom drawable to the ImageView Screenshot |
| Circular View For a circular View (in this case Assign the drawable to the View: Now it should look like the orange circle: |
| Make View with rounded corners Create drawable file named with custom_rectangle.xml in drawable folder: Now apply rectangle background on View: Reference screenshot: |
Read Article
https://develop.horje.com/learn/1434/reference