3dTagCloudAndroid
Tagcloud component for android
Install / Use
/learn @misakuo/3dTagCloudAndroidREADME
TagCloudView
Sample

扫码下载示例APK
简介
TagCloudView是一个基于ViewGroup实现的控件,支持将一组View展示为一个3D球形集合,并支持全方向滚动。
UI效果
使用
Eclipse
copy代码,或使用ADT的maven插件
Android Studio / IDEA
- 在
build.gradle中添加
compile 'com.moxun:tagcloudlib:1.2.0'
- 在布局文件中引入
<com.moxun.tagcloudlib.view.TagCloudView/>
-
设置Adapter
继承TagsAdapter,实现以下方法public int getCount();
返回Tag数量
public View getView(Context context, int position, ViewGroup parent);
返回每个Tag实例
public Object getItem(int position);
返回Tag数据
public int getPopularity(int position);
针对每个Tag返回一个权重值,该值与ThemeColor和Tag初始大小有关;一个简单的权重值生成方式是对一个数N取余或使用随机数
public void onThemeColorChanged(View view,int themeColor);
Tag主题色发生变化时会回调该方法 -
定制属性
| 属性 | xml | 代码 |值类型| |:------------: |:-------------:| :----:|:-: | 自动滚动 | app:autoScrollMode | setAutoScrollMode(int mode) |enum [disable,uniform,decelerate] | 半径百分比 | app:radiusPercent | setRadiusPercent(float percent) |float [0,1] | 滚动速度 | app:scrollSpeed | setScrollSpeed(float scrollSpeed) |float [0,+] |起始颜色|app:lightColor|setLightColor(int color)|int |终止颜色|app:darkColor|setDarkColor(int color)|int
欢迎提交PR
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.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
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

