eclipse - Code for android spinner -


i'm having problem change xml file android spinner.i'm still new in android development , hope me.

<channel id="1"> <title>m</title> <description>my new tv.  viewer: 15+ </description> <icon>image</icon> <link>link</link> 

you need this

in strings.xml define:

<string-array name="array_name"> <item>array item one</item> <item>array item two</item> <item>array item three</item> </string-array> 

in layout:

<spinner          android:id="@+id/spinner"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:drawselectorontop="true"         android:entries="@array/array_name"     /> 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -