<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=ANDROID%3A_UI_Control</id>
	<title>ANDROID: UI Control - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=ANDROID%3A_UI_Control"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=ANDROID:_UI_Control&amp;action=history"/>
	<updated>2026-04-10T16:20:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=ANDROID:_UI_Control&amp;diff=65674&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot;Input controls are the interactive components in your app's user interface. Android provides a wide variety of controls you can use in your UI, such as buttons, text fields, s...&quot;</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=ANDROID:_UI_Control&amp;diff=65674&amp;oldid=prev"/>
		<updated>2022-06-26T05:48:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Input controls are the interactive components in your app&amp;#039;s user interface. Android provides a wide variety of controls you can use in your UI, such as buttons, text fields, s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Input controls are the interactive components in your app's user interface. Android provides a wide variety of controls you can use in your UI, such as buttons, text fields, seek bars, check box, zoom buttons, toggle buttons, and many more.&lt;br /&gt;
&lt;br /&gt;
UI Control&lt;br /&gt;
UI Elements&lt;br /&gt;
A View is an object that draws something on the screen that the user can interact with and a ViewGroup is an object that holds other View (and ViewGroup) objects in order to define the layout of the user interface.&lt;br /&gt;
&lt;br /&gt;
You define your layout in an XML file which offers a human-readable structure for the layout, similar to HTML. For example, a simple vertical layout with a text view and a button looks like this −&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;LinearLayout xmlns:android=&amp;quot;http://schemas.android.com/apk/res/android&amp;quot;&lt;br /&gt;
   android:layout_width=&amp;quot;fill_parent&amp;quot;&lt;br /&gt;
   android:layout_height=&amp;quot;fill_parent&amp;quot;&lt;br /&gt;
   android:orientation=&amp;quot;vertical&amp;quot; &amp;gt;&lt;br /&gt;
   &lt;br /&gt;
   &amp;lt;TextView android:id=&amp;quot;@+id/text&amp;quot;&lt;br /&gt;
      android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
      android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
      android:text=&amp;quot;I am a TextView&amp;quot; /&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
   &amp;lt;Button android:id=&amp;quot;@+id/button&amp;quot;&lt;br /&gt;
      android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
      android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
      android:text=&amp;quot;I am a Button&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/LinearLayout&amp;gt;&lt;br /&gt;
Android UI Controls&lt;br /&gt;
There are number of UI controls provided by Android that allow you to build the graphical user interface for your app.&lt;br /&gt;
&lt;br /&gt;
Sr.No.	UI Control &amp;amp; Description&lt;br /&gt;
1	TextView&lt;br /&gt;
This control is used to display text to the user.&lt;br /&gt;
&lt;br /&gt;
2	EditText&lt;br /&gt;
EditText is a predefined subclass of TextView that includes rich editing capabilities.&lt;br /&gt;
&lt;br /&gt;
3	AutoCompleteTextView&lt;br /&gt;
The AutoCompleteTextView is a view that is similar to EditText, except that it shows a list of completion suggestions automatically while the user is typing.&lt;br /&gt;
&lt;br /&gt;
4	Button&lt;br /&gt;
A push-button that can be pressed, or clicked, by the user to perform an action.&lt;br /&gt;
&lt;br /&gt;
5	ImageButton&lt;br /&gt;
An ImageButton is an AbsoluteLayout which enables you to specify the exact location of its children. This shows a button with an image (instead of text) that can be pressed or clicked by the user.&lt;br /&gt;
&lt;br /&gt;
6	CheckBox&lt;br /&gt;
An on/off switch that can be toggled by the user. You should use check box when presenting users with a group of selectable options that are not mutually exclusive.&lt;br /&gt;
&lt;br /&gt;
7	ToggleButton&lt;br /&gt;
An on/off button with a light indicator.&lt;br /&gt;
&lt;br /&gt;
8	RadioButton&lt;br /&gt;
The RadioButton has two states: either checked or unchecked.&lt;br /&gt;
&lt;br /&gt;
9	RadioGroup&lt;br /&gt;
A RadioGroup is used to group together one or more RadioButtons.&lt;br /&gt;
&lt;br /&gt;
10	ProgressBar&lt;br /&gt;
The ProgressBar view provides visual feedback about some ongoing tasks, such as when you are performing a task in the background.&lt;br /&gt;
&lt;br /&gt;
11	Spinner&lt;br /&gt;
A drop-down list that allows users to select one value from a set.&lt;br /&gt;
&lt;br /&gt;
12	TimePicker&lt;br /&gt;
The TimePicker view enables users to select a time of the day, in either 24-hour mode or AM/PM mode.&lt;br /&gt;
&lt;br /&gt;
13	DatePicker&lt;br /&gt;
The DatePicker view enables users to select a date of the day.&lt;br /&gt;
&lt;br /&gt;
Create UI Controls&lt;br /&gt;
Input controls are the interactive components in your app's user interface. Android provides a wide variety of controls you can use in your UI, such as buttons, text fields, seek bars, check box, zoom buttons, toggle buttons, and many more.&lt;br /&gt;
&lt;br /&gt;
As explained in previous chapter, a view object may have a unique ID assigned to it which will identify the View uniquely within the tree. The syntax for an ID, inside an XML tag is −&lt;br /&gt;
&lt;br /&gt;
android:id=&amp;quot;@+id/text_id&amp;quot;&lt;br /&gt;
To create a UI Control/View/Widget you will have to define a view/widget in the layout file and assign it a unique ID as follows −&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;LinearLayout xmlns:android=&amp;quot;http://schemas.android.com/apk/res/android&amp;quot;&lt;br /&gt;
   android:layout_width=&amp;quot;fill_parent&amp;quot; &lt;br /&gt;
   android:layout_height=&amp;quot;fill_parent&amp;quot;&lt;br /&gt;
   android:orientation=&amp;quot;vertical&amp;quot; &amp;gt;&lt;br /&gt;
   &lt;br /&gt;
   &amp;lt;TextView android:id=&amp;quot;@+id/text_id&amp;quot;&lt;br /&gt;
      android:layout_width=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
      android:layout_height=&amp;quot;wrap_content&amp;quot;&lt;br /&gt;
      android:text=&amp;quot;I am a TextView&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/LinearLayout&amp;gt;&lt;br /&gt;
Then finally create an instance of the Control object and capture it from the layout, use the following −&lt;br /&gt;
&lt;br /&gt;
TextView myText = (TextView) findViewById(R.id.text_id);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* https://www.tutorialspoint.com/android/android_user_interface_controls.htm&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>