|
9 | 9 | android:orientation="vertical" |
10 | 10 | android:padding="16dp"> |
11 | 11 |
|
12 | | - <com.hanks.htextview.fade.FadeTextView |
13 | | - android:id="@+id/textview" |
14 | | - android:layout_width="240dp" |
15 | | - android:layout_height="150dp" |
16 | | - android:gravity="right" |
17 | | - android:letterSpacing="0.08" |
18 | | - android:lineSpacingMultiplier="1.3" |
19 | | - android:text="但愿所有漂泊的人都有酒喝,但愿所有孤独的人都会唱歌。" |
20 | | - android:textColor="#fff" |
21 | | - android:textSize="20sp" |
22 | | - app:animationDuration="1000"/> |
| 12 | + <LinearLayout |
| 13 | + android:layout_width="match_parent" |
| 14 | + android:layout_height="200dp" |
| 15 | + android:gravity="center" |
| 16 | + android:orientation="vertical"> |
| 17 | + |
| 18 | + <com.hanks.htextview.fade.FadeTextView |
| 19 | + android:id="@+id/textview" |
| 20 | + android:layout_width="match_parent" |
| 21 | + android:layout_height="wrap_content" |
| 22 | + android:layout_marginLeft="30dp" |
| 23 | + android:gravity="left|center_vertical" |
| 24 | + android:letterSpacing="0.08" |
| 25 | + android:lineSpacingMultiplier="1.2" |
| 26 | + android:text="但愿所有漂泊的人都有酒喝,但愿所有孤独的人都会唱歌。" |
| 27 | + android:textColor="#fff" |
| 28 | + android:textSize="18sp" |
| 29 | + app:animationDuration="2000"/> |
| 30 | + </LinearLayout> |
23 | 31 |
|
24 | 32 | <com.hanks.htextview.fade.FadeTextView |
25 | 33 | android:id="@+id/textview2" |
|
0 commit comments