代码拉取完成,页面将自动刷新
本项目是基于开源项目ScrollTextView进行ohos化的移植和开发的,可以通过项目标签以及github地址(https://github.com/AnyLifeZLB/ScrollTextView ) 追踪到原项目版本
方法1.
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
……
}
方法2.
repositories {
maven {
url 'http://106.15.92.248:8081/repository/Releases/'
}
}
dependencies {
implementation 'anylife.ohos:scrolltextview:1.0.0'
}
ScrollTextView属性
Attribute 属性 | Description 描述 |
---|---|
clickEnable | 是否能点击 |
speed | 跑马灯速度 |
text | 跑马灯文字 |
text_color | 跑马灯文字颜色 |
text_size | 跑马灯文字大小 |
times | 跑马灯持续时长 |
isScrollForever | 是否一直跑马灯 |
<anylife.scrolltextview.ScrollTextView
ohos:id="$+id:scrollText"
ohos:height="44vp"
ohos:width="match_parent"
ohos:vertical_center="true"
customAttr:clickEnable="true"
customAttr:isHorizontal="true"
customAttr:speed="4"
customAttr:text="请点击「设置图标」设置相关属性"
customAttr:text_color="#ffffff"
customAttr:text_size="22fp"/>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。