android - Strange Spinner. How to fix it? -


this code populate spinner. looks strange , ugly.

    @override     protected void onpostexecute(final list<string> result) {         system.out.println("result: " + result);         final spinneradapter adapter = new arrayadapter<string>(searchtopactivity.this, android.r.layout.simple_spinner_dropdown_item, new string[]{"test1", "test2"});         countryspinner.setadapter(adapter);     }  <spinner     android:id="@+id/countryspinner"     android:layout_width="match_parent"     android:layout_height="wrap_content" /> 

enter image description here

how fix this

enter image description here

(searchtopactivity.this, android.r.layout.simple_spinner_dropdown_item, new string[]{"test1", "test2"}) change

android.r.layout.simple_spinner_dropdown_item android.r.layout.simple_spinner_item 

refer http://developer.android.com/resources/tutorials/views/hello-spinner.html


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -