Android Beautiful Spinner view without Custom adapter

Home  >>  Tutorials  >>  Android  >>  Android Beautiful Spinner view without Custom adapter

Android Beautiful Spinner view without Custom adapter

27
Feb,2018

0

To make this just bind spinner with cardview . and make it like the code bellow . now it will looks beautiful .

 

<android.support.v7.widget.CardView
    android:layout_width="match_parent"
    android:layout_height="@dimen/count_40dp"
    android:layout_marginLeft="@dimen/count_5dp"
    android:layout_marginRight="@dimen/count_5dp"
    android:layout_marginTop="@dimen/count_10dp">

    <Spinner
        android:id="@+id/gender"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
</android.support.v7.widget.CardView>

Leave a Reply

Your email address will not be published. Required fields are marked *