Android : How to add a line at the bottom of spinner as like edittext in android

on Saturday, November 1, 2014


Hello I am making demo application in which i am using EditText in which a line appears at the bottom that is ok but it is not in case of spinner.


How this is possible to do ?


layout.xml



<EditText
android:id="@+id/twitterEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:hint="@string/twitter_account"
android:inputType="textWebEmailAddress" />


<Spinner
android:id="@+id/countrySpinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:hint="@string/country" />

<Spinner
android:id="@+id/stateSpinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:hint="@string/state" />

<Spinner
android:id="@+id/citySpinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:hint="@string/city" />


enter image description here


0 comments:

Post a Comment