17. 17
Used to display images as a part of content area in TextView
drawableRight(Left)
18. 18
1. Button is used to perform some sort of actions such as
submitting a selection, or performing some tasks on click .
2. It’s a push button, which can be pressed or clicked by the user
to perform action
Button
19. 19
1. id
2. Text
3. textColor
4. textSize
Attributes
1. textStyle
2. textAllCaps
3. Background
4. Padding.
20. 20
1. id
2. Text
3. textColor
4. textSize
Attributes
1. textStyle
2. textAllCaps
3. Background
4. Padding.
5. Drawable left, right
21. 21
1. ImageView is used to display any kind of image resource in
the android application
2. Either android.graphics.Bitmap or android.graphics.drawable
ImageView
23. 23
Creating Image Resource
Add image file in drawable folder
Supported files
PNG, JPG
To use image resource, we can reference it from
the XML code using resource id, i.e. file name
without extension.