0

I want to create a xml file just as image below. How can I show a spinner with the EditText as shown in fig below?enter image description here where All Category is a spinner and attached to it is a EditText. How can I acheive this?

user2699728
  • 377
  • 2
  • 8
  • 25

1 Answers1

0

You can follow this layout architecture...

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal" >

    <Spinner
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <EditText
        android:layout_width="0dip"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:hint="Search" />

</LinearLayout>
Hamid Shatu
  • 9,664
  • 4
  • 30
  • 41