android - Text Size of a Spinner -


how can decrease font size of spinner? have reduced spinner size 35 pix because of text gets cut in half.

how do that? dont want selected beforehand.

default text should "select value".

after tests, there easier way subclassing arrayadapter. change

arrayadapter<charsequence> adapter = arrayadapter.createfromresource(this, r.array.planets_array,android.r.layout.simple_spinner_item);//this tutorial, adapt line 

to line :

arrayadapter<charsequence> adapter = arrayadapter.createfromresource(this, r.array.planets_array, r.layout.textview); 

you have change design of textview use of spinner. tried this, layout of textview.xml :

<textview xmlns:android="http://schemas.android.com/apk/res/android" android:text="@+id/textview01" android:id="@+id/textview01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textsize="30sp"></textview> 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -