Marquee
An efficient implement of marquee,more efficient than marquee of textview,from the test, the usage of cpu is almost half of the latter.
Install / Use
/learn @xzwszl/MarqueeREADME
Marquee
An efficient implement of marquee, more efficient than marquee of textview,from the test, the usage of cpu is almost half of the latter.
Chinese:一种比TextView跑马灯更加高效的实现,从测试数据看,cpu使用只占TextView跑马灯一半左右~ Usage
<FrameLayout
android:layout_width="match_parent"
android:layout_height="180dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true">
<com.xzl.marquee.library.MarqueeView
android:id="@+id/marquee"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:text_color="@android:color/white"
app:txt_spacing="15dp"
app:text_shadowColor="@android:color/black"
app:txt_dx="1.0"
app:txt_dy="1.0"
app:txt_radius="1.0"
app:text_size="25sp"
app:speed="40dp"
android:layout_gravity="center_vertical"/>
</FrameLayout>
Effect

About Me
Email Address: xzwszl@163.com
Wechat Name: 兮乐
Love Android, Love Life!
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
