0

Hi I have required dropdownlist like in imageenter image description here

for that My code is as:-

<LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="35dip"
        android:orientation="horizontal" >

        <TextView
            android:layout_width="60dip"
            android:layout_height="wrap_content"
            android:layout_marginLeft="15dip"
            android:text="Picture"
            android:textColor="#000000"
            android:textSize="18dip" />

        <View
            android:layout_width="34dp"
            android:layout_height="40dip" />

        <Spinner
            android:id="@+id/picturelist"
            android:layout_width="206dp"
            android:layout_height="30dip"
            android:ellipsize="end"
            android:gravity="center"
            android:imeOptions="actionNext"
            android:singleLine="true"
            android:entries="@array/picture_arrays"
            android:prompt="@string/prompt"
            android:textColor="#000000" />
    </LinearLayout>

but output is as shown in image:-enter image description here

please anyone help me.

skt
  • 102
  • 8

2 Answers2

0

I can see the dropdown on the lower-right (light grayed color). If you want it to be fairly visible, increase the contrast like changing its color in contrast with the background color of the activity.

aCode
  • 106
  • 5
  • but its dropdown also in black color and open above the spinner?and what color should be there? – skt Jul 25 '12 at 07:47
  • set something like this: android:backgroound="#FFFF00", if you want yellow background. – aCode Jul 25 '12 at 08:09
0

Try this instead..

<Spinner
  android:id="@+id/picturelist"
  android:layout_width="206dp"
  android:layout_height="30dip"
  android:ellipsize="end"
  android:gravity="center"
  android:imeOptions="actionNext"
  android:entries="@array/picture_arrays"
  android:prompt="@string/prompt"
  android:textColor="#000000" />

Edit:
To Change the Color,Please See this

Community
  • 1
  • 1
Haresh Chaudhary
  • 4,390
  • 1
  • 34
  • 57