Wie setzen SearchView TextSize?

Ich habe eine SearchView innerhalb einer LinearLayout und ich bin versucht, einen anderen TextSize (der SearchView), aber bei der Einstellung android:textSize="60sp" zum Beispiel, passiert nichts.

Dies ist mein code:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          android:padding="2dp">
<SearchView
        android:id="@+id/searchView"
        android:layout_width="350dp"
        android:textSize="60sp"
        android:layout_height="80dp"
        android:layout_marginTop="15dp"/>
<ListView
        android:id="@+id/search_results"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"/>

Weiß jemand, wie das ändern der TextSize von der Steuerung?

InformationsquelleAutor der Frage tetius | 2012-05-10

Schreibe einen Kommentar