2016-11-29 103 views

回答

0

如果你想改變你的應用程序的UI-elemnts,那麼你可以自定義的main.xml

<TextView 
    android:id="@+id/text_view2" 
    android:text="Font size 25dp or dip (Density-independent-Pixels)" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:textColor="#FF0000" 
    android:textSize="25dp" 
    /> 

代碼是從這個鏈接https://android--examples.blogspot.se/2015/01/textview-font-size-in-android.html

Howevver拍攝,如果你想更新在運行時使用ui,那麼你最需要向ui發送請求。 檢查此線程Updating Android UI using threads 佛朗哥和user634618都有很好的答案。

相關問題