Aasiya3 / ElephantBook_FieldGuide

Apache License 2.0
1 stars 1 forks source link

image template #20

Closed retinxl closed 2 years ago

retinxl commented 3 years ago

template for drawables to be called

bsakai2000 commented 3 years ago

Should be able to change the XML dynamically from Kotlin function

https://stackoverflow.com/questions/2974862/changing-imageview-source https://developer.android.com/reference/android/widget/ImageView#setImageResource(int) https://developer.android.com/reference/android/graphics/drawable/Drawable#createFromPath(java.lang.String)

Aasiya3 commented 3 years ago

Another example of changing the XML dynamically https://abhiandroid.com/ui/imageview