A popular alternative to a spinner is the
ListView instance. The
ListView instances are views that will show a list of items in full screen with a vertical scrolling. In other words, it is equivalent to a full screen spinner, which is always active.
In order to follow this recipe, create a new project in the very same solution and name it
How to do it...
- Edit the
Layoutfile with the following:
<?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/textItem" android:textSize="44sp" android:layout_width="fill_parent" android:layout_height="wrap_content" />
- Create another