UI Components
UI Components
1. Form widgets
2. Text Fields
3. Composite
4. Image and Media
5. Time & Date
6. Transitions
7. Advance widgets
1. Form widgets :
a) TextView: TextViews are typically used to display a caption • TextViews are not editable, therefore they take no input .
<TextView android:id="@+id/myTextView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#ff0000ff" android:padding="3px" android:text="Enter User Name" android:textSize="16sp" android:textStyle="bold" android:gravity="center" android:layout_x="20px" android:layout_y="22px“ > </TextView>
b) EditText
c) Button: A Button widget allows the simulation of a clicking action on a GUI. • Button is a subclass of TextView. Therefore formatting a Button’s face is similar to the setting of a TextView.
1. Form widgets
2. Text Fields
3. Composite
4. Image and Media
5. Time & Date
6. Transitions
7. Advance widgets
1. Form widgets :
a) TextView: TextViews are typically used to display a caption • TextViews are not editable, therefore they take no input .
<TextView android:id="@+id/myTextView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#ff0000ff" android:padding="3px" android:text="Enter User Name" android:textSize="16sp" android:textStyle="bold" android:gravity="center" android:layout_x="20px" android:layout_y="22px“ > </TextView>
b) EditText
c) Button: A Button widget allows the simulation of a clicking action on a GUI. • Button is a subclass of TextView. Therefore formatting a Button’s face is similar to the setting of a TextView.
Post a Comment