如何在textview中的文本之间留出空间?

Ste*_*eve 10 android space textview

我需要根据Android屏幕绑定制作这样的东西,

 S             M             T              W               T              F               S
Run Code Online (Sandbox Code Playgroud)

我这样做:

    <TextView
    android:id="@+id/textView1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="45dp"
    android:text="S       M       T        W        T        F       S" />
Run Code Online (Sandbox Code Playgroud)

这不能正常工作,不是根据设备屏幕绑定.我需要这样的东西:

<TextView
    android:id="@+id/textView1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="45dp"
    android:text="S""10dp""M""10dp""T""10dp""W""10dp""T""10dp""F""10dp""S""10dp" />
Run Code Online (Sandbox Code Playgroud)

App*_*art 19

我们可以使用它.

<TextView android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="A&#160;B&#160;&#160;&#160;&#160;&#160;C"/>
Run Code Online (Sandbox Code Playgroud)


小智 9

使用letterSpacing字母之间的间距属性:

android:id="@+id/txt_work"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:typeface="serif"
android:layout_below="@+id/txt_wecm"
android:layout_marginLeft="20dp"
android:textSize="32dp"
android:letterSpacing="0.1"
android:textColor="#fff"
android:text="World" 
Run Code Online (Sandbox Code Playgroud)