arrayadapter

Android AutoCompleteTextView Example

In android, we can show a string items in autocompletetextview. So that items will display according to the characters we have give. Ex:- If we are giving 'an' it will show all the items starts with 'an'.

Android Listview Example

Here we are going to see about a simple listview example using String arrays to display in list.

Android Spinner Example

In Android, Spinner is nothing but a combo box or list box.

It lets you viewing multiple items and allows you to select one item from the list.

Edit Your XML code like this

[sourcecode language="css"]
<Spinner android:id="@+id/Spinner01"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
[/sourcecode]

Your Java Class code should look like this

[sourcecode language="java"]
public class SpinnerExample extends Activity {
private String array_spinner[];
@Override
public void onCreate(Bundle savedInstanceSta

Syndicate content