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? where All Category is a spinner and attached to it is a EditText. How can I acheive this?
Asked
Active
Viewed 454 times
0

user2699728
- 377
- 2
- 8
- 25
-
you need to create custom Action Bar... – Looking Forward Feb 27 '14 at 05:40
-
@AnilBhatiya any Tutorial for the same? – user2699728 Feb 27 '14 at 05:40
-
http://www.sanfoundry.com/java-android-program-add-custom-view-actionbar/ – Looking Forward Feb 27 '14 at 05:42
-
http://stackoverflow.com/questions/16026818/actionbar-custom-view-with-centered-imageview-action-items-on-sides – Looking Forward Feb 27 '14 at 05:43
1 Answers
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