-
Notifications
You must be signed in to change notification settings - Fork 9
/
activity_main.xml
45 lines (41 loc) · 1.59 KB
/
activity_main.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:orientation="vertical">
<!--系统跑马灯-->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:text="@string/marquee_content" />
<!--自定义跑马灯-->
<cc.ibooker.ztextviewlib.MarqueeTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/marquee_content" />
<!--垂直滚动TextView-->
<cc.ibooker.ztextviewlib.AutoVerticalScrollTextView
android:id="@+id/autoVerticalScrollTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/white"
android:paddingBottom="10dp"
android:paddingEnd="5dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:paddingStart="5dp"
android:paddingTop="10dp"
android:text="@string/app_name" />
<TextView
android:id="@+id/tv_test"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp" />
</LinearLayout>