我有很長的文字多行..在Android中多行的textview適合屏幕多長時間?
所以,我曾嘗試: -
activity_into.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bck"
android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="overview"
android:textColor="@color/white"
android:textStyle="bold|italic"
android:layout_marginTop="55dp"/>
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/intro"
android:textColor="@color/white"
android:layout_marginTop="10dp"/>
這裏「@字符串/介紹「是一個包含多行的長文本。 通過上面的代碼,我的文本: - Like this ,, 這個文本不適合屏幕..
我想用一個好的文本style..How左側和右側之間的小空間,我可以做到這一點? ????
用於間距使用margin_left和margin_right。如果你想改變字體..添加它的樣式和使用android:textstyle屬性 – Naufal 2014-10-29 04:43:01
添加margin_left和margin_right – 2014-10-29 04:43:03