TagCloudView

June 28, 2016 · View on GitHub

Download Android Arsenal Build Status Android Gems
中文 ###Sample Sample APP
Scaning to download the sample APK. ###Summary TagCloudView is a component based Android ViewGroup, it support to showing group of Views as a 3D sphere, and the sphere can scroll in all directions. ###UI Style Image
screenshot

###Useage

Eclipse

copy source code or using maven plugin for Eclipse.

Android Studio / IDEA
  • Place code in your build.gradle
dependencies {
    compile 'com.moxun:tagcloudlib:1.2.0'
}
  • Using in xml
<com.moxun.tagcloudlib.view.TagCloudView/>  
  • Set Adapter
    Extending class TagsAdapter and implement following methods:
    public int getCount();
    Return the number of tags
    public View getView(Context context, int position, ViewGroup parent);
    Return the View instance of each tag
    public Object getItem(int position);
    Return the data of each tag(could be null)
    public int getPopularity(int position);
    Assign a propularity value for each Tag, this value is relation to tag's theme color
    public void onThemeColorChanged(View view,int themeColor);
    This method will be called when tag's theme color changed

  • Custom Properties

PropertiesIn XMLIn CodeValue Type
Auto Scrollapp:autoScrollModesetAutoScrollMode(int mode)enum [disable,uniform,decelerate]
Radiusapp:radiusPercentsetRadiusPercent(float percent)float (0,1)
Scroll Speedapp:scrollSpeedsetScrollSpeed(float scrollSpeed)float (0,+]
Start Colorapp:lightColorsetLightColor(int color)int
End Colorapp:darkColorsetDarkColor(int color)int

Welcome to Pull Request and Issues.