Introduction To Mobile Computing With Android: Prof. Manish Kumar Joshi, Assistant Professor
Introduction To Mobile Computing With Android: Prof. Manish Kumar Joshi, Assistant Professor
Introduction To Mobile Computing With Android: Prof. Manish Kumar Joshi, Assistant Professor
with Android
Prof. Manish Kumar Joshi, Assistant Professor
IT & Computer Science
CHAPTER-3
Master Android UI Components
TextView
Following are the important attributes related to TextView control. You can
check Android official documentation for complete list of attributes and
related methods which you can use to change these attributes are run time.
• android:id
• android:capitalize
• android:cursorVisible
• android:editable
• android:fontFamily
• android:gravity
TextView Attributes
• android:hint • android:textColor
• android:inputType • android:textColorHighlight
• android:maxHeight • android:textColorHint
• android:maxWidth • android:textIsSelectable
• android:minHeight • android:textSize
• android:minWidth • android:textStyle
• android:password • android:typeface
• android:phoneNumber
• android:text
• android:textAllCaps
Button
Following are the important attributes related to Button control. You can
check Android official documentation for complete list of attributes and
related methods which you can use to change these attributes are run time.
Inherited from android.widget.TextView Class
• android:autoText
• android:drawableButtom
• android:drawableRight
• android:editable
• android:text
Button Attributes
Following are the important attributes related to EditText control. You can
check Android official documentation for complete list of attributes and
related methods which you can use to change these attributes are run time.
Inherited from android.widget.TextView Class
• android:autoText
• android:drawableButtom
• android:drawableRight
• android:editable
• android:text
EditText Attributes
• android:background
• android:src
• android:id
• android:scaleType
Android Layouts
Android Layout is used to define the user interface which holds the UI
controls or widgets that will appear on the screen of an android application
or activity. Generally, every application is combination of View and
ViewGroup. As we know, an android application contains a large number of
activities and we can say each activity is one page of the application. So,
each activities contains multiple user interface components and those
components are the instances of the View and ViewGroup.
Android Layouts
• android:id
• android:layout_width
• android:layout_height
• android:layout_marginLeft
• android:layout_marginRight
• android:layout_marginTop
• android:layout_marginBottom
• android:layout_gravity
www.paruluniversity.ac.in