Skip to content

Commit

Permalink
UPDATE README
Browse files Browse the repository at this point in the history
  • Loading branch information
misakuo committed Jan 20, 2016
1 parent 36c0048 commit e630f30
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ compile 'com.moxun:tagcloudlib:1.0.2'
```<com.moxun.tagcloudlib.view.TagCloudView/>```

3. 设置Adapter
继承`TagsAdapter`,实现以下方法
**public int getCount();**
继承`TagsAdapter`,实现以下方法

**public int getCount();**
*返回Tag数量*
**public View getView(Context context, int position, ViewGroup parent);**
*返回每个Tag实例*
Expand All @@ -28,6 +29,7 @@ compile 'com.moxun:tagcloudlib:1.0.2'
*针对每个Tag返回一个权重值,该值与ThemeColor和Tag初始大小有关*
**public void onThemeColorChanged(View view,int themeColor);**
*Tag主题色发生变化时会回调该方法*

4. 定制属性

| 属性 | xml | 代码 |值类型|
Expand All @@ -38,5 +40,6 @@ compile 'com.moxun:tagcloudlib:1.0.2'
|起始颜色|app:lightColor|setLightColor(int color)|int
|终止颜色|app:darkColor|setDarkColor(int color)|int


***
欢迎提交PR

0 comments on commit e630f30

Please sign in to comment.