适用于Android的垂直字幕 TextView
特性当TextView添加到视图时自动启动字幕效果。
可以定制的字幕速度
易于扩展和定制
安装repositories {
jcenter()
}
dependencies {
compile 'android.lib.verticalmarqueetextview:VerticalMarqueeTextView:+'
}
下面是生成上述屏幕截图的示例布局:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:example="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_gravity="center_horizontal"
android:scaleType="centerInside"
android:src="@android:drawable/sym_def_app_icon"/>
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_gravity="center_horizontal"
example:marqueeSpeed="25"
example:textSize="20dp"
example:textColor="@android:color/white"
example:textStyle="bold"
example:text="The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."/>
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>