android如何使用动态文本来设置滚动跑马灯,比如在变换音乐时,让音乐信息(例如歌名,歌手等信息)变换后跑起来
Simply add a single TextView within the MarqueeView instance.
The view can be configured via Java code, or through XML. Please see the sample for details.
Including In Your Project
If you are a Maven user you can easily include the library by specifying it as a dependency:
<dependency>
<groupId>asia.ivity.android</groupId>
<artifactId>marqueeview-apklib</artifactId>
<version>{insert-latest-version}</version>
<type>apklib</type>
</dependency>
If you are using gradle, you can refer to the .aar version like so:
// Ensure to fetch dependencies from maven central
repositories {
mavenCentral()
}
dependencies {
compile 'asia.ivity.android:marqueeview:{insert-latest-version}@aar'
}