Spinner Default Theme for EditText android

I have EditTextone and I want it to appear in the same Spinner theme, with background and arrow, because I made it EditTextClickable and opened a custom popup

+5
source share
2 answers

Use the following style in EditText: style="?android:attr/spinnerStyle"

For instance:

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="?android:attr/spinnerStyle" />

+20
source

check this:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <EditText
        android:id="@+id/editText1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:ems="10" 
        android:drawableRight="@drawable/apple">

        <requestFocus />
    </EditText>

</LinearLayout>
0
source

All Articles