Skip to content

Commit

Permalink
v1.4 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
2dxgujun committed May 23, 2015
1 parent 7be6c44 commit 247e925
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 28 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Change Log
==========

Version 1.4 *(2015-05-23)*
----------------------------

- Fix: Duplicate "attr" name issues when using multiple Android libraries.

Version 1.3 *(2015-05-21)*
----------------------------

Expand Down
52 changes: 26 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Also you can contribute new idea to me.
![screenshot2](http://ww4.sinaimg.cn/large/bce2dea9jw1esbsbngv8fj20u005w75v.jpg)
![screenshot3](http://ww4.sinaimg.cn/large/bce2dea9jw1esbsbmoagij20u005sabl.jpg)

[Download Demo](https://github.com/2dxgujun/AndroidTagGroup/releases/download/v1.3/AndroidTagGroup-Demo-v1.3.apk)
[Download Demo](https://github.com/2dxgujun/AndroidTagGroup/releases/download/v1.4/AndroidTagGroup-Demo-v1.4.apk)

# Usage

Expand All @@ -26,7 +26,7 @@ Also you can contribute new idea to me.
#### Gradle
```groovy
dependencies {
compile 'me.gujun.android.taggroup:library:1.3@aar'
compile 'me.gujun.android.taggroup:library:1.4@aar'
}
```

Expand All @@ -35,7 +35,7 @@ dependencies {
<dependency>
<groupId>me.gujun.android.taggroup</groupId>
<artifactId>library</artifactId>
<version>1.3</version>
<version>1.4</version>
<type>apklib</type>
</dependency>
```
Expand All @@ -59,6 +59,8 @@ Use `setTags(...)` to set the initial tags in the group.

To "submit" a new tag as user press "Enter" or tap the blank area of the tag group, also you can "submit" a new tag via `submitTag()`.

**Note**: Google keyboard (a few soft keyboard not honour the key event) currently not supported "Enter" key to "submit" a new tag.

#### How to delete a tag?

To delete a tag as user press "Backspace" key or double-tap the tag which you want to delete.
Expand All @@ -68,8 +70,6 @@ To delete a tag as user press "Backspace" key or double-tap the tag which you wa
Implement a callback interface: `TagGroup.OnTagClickListener`, and set the listener via `setOnTagClickListener()`.


**Note**: Google keyboard (a few soft keyboard not honour the key event) currently not supported "Enter" key to "submit" a new tag.

# Build

run `./gradlew assembleDebug` (Mac/Linux)
Expand All @@ -84,27 +84,27 @@ There are several attributes you can set:

![Dimension illustrate](http://ww2.sinaimg.cn/large/bce2dea9gw1epov0i8x6kj20rk054q4g.jpg)

| attr | default | mean |
|:--------------------- |:---------------- |:------------------------------------------------------- |
| isAppendMode | false | Determine the TagGroup mode, APPEND or single DISPLAY. |
| inputHint | Add Tag/添加标签 | The hint of the INPUT tag. |
| borderColor | #49C120 | The tag outline border color. |
| textColor | #49C120 | The tag text color. |
| backgroundColor | #FFFFFF | The tag background color. |
| dashBorderColor | #AAAAAA | The tag dash outline border color. |
| inputHintColor | #80000000 | The input tag hint text color. |
| inputTextColor | #DE000000 | The input tag type text color.. |
| checkedBorderColor | #49C120 | The checked tag outline border color. |
| checkedTextColor | #FFFFFF | The checked text color. |
| checkedMarkerColor | #FFFFFF | The checked marker color. |
| checkedBackgroundColor| #49C120 | The checked tag background color. |
| pressedBackgroundColor| #EDEDED | The tag background color when the tag is being pressed. |
| borderStrokeWidth | 0.5dp | The tag outline border stroke width. |
| textSize | 13sp | The tag text size. |
| horizontalSpacing | 8dp | The horizontal tag spacing.(Mark1) |
| verticalSpacing | 4dp | The vertical tag spacing.(Mark2) |
| horizontalPadding | 12dp | The horizontal tag padding.(Mark3) |
| verticalPadding | 3dp | The vertical tag padding.(Mark4) |
| attr | default | mean |
|:------------------------- |:---------------- |:------------------------------------------------------- |
| atg_isAppendMode | false | Determine the TagGroup mode, APPEND or single DISPLAY. |
| atg_inputHint | Add Tag/添加标签 | The hint of the INPUT tag. |
| atg_borderColor | #49C120 | The tag outline border color. |
| atg_textColor | #49C120 | The tag text color. |
| atg_backgroundColor | #FFFFFF | The tag background color. |
| atg_dashBorderColor | #AAAAAA | The tag dash outline border color. |
| atg_inputHintColor | #80000000 | The input tag hint text color. |
| atg_inputTextColor | #DE000000 | The input tag type text color.. |
| atg_checkedBorderColor | #49C120 | The checked tag outline border color. |
| atg_checkedTextColor | #FFFFFF | The checked text color. |
| atg_checkedMarkerColor | #FFFFFF | The checked marker color. |
| atg_checkedBackgroundColor| #49C120 | The checked tag background color. |
| atg_pressedBackgroundColor| #EDEDED | The tag background color when the tag is being pressed. |
| atg_borderStrokeWidth | 0.5dp | The tag outline border stroke width. |
| atg_textSize | 13sp | The tag text size. |
| atg_horizontalSpacing | 8dp | The horizontal tag spacing.(Mark1) |
| atg_verticalSpacing | 4dp | The vertical tag spacing.(Mark2) |
| atg_horizontalPadding | 12dp | The horizontal tag padding.(Mark3) |
| atg_verticalPadding | 3dp | The vertical tag padding.(Mark4) |

# Developed By

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

VERSION_NAME=1.3
VERSION_CODE=13
VERSION_NAME=1.4
VERSION_CODE=14
GROUP=me.gujun.android.taggroup

POM_DESCRIPTION=Android Library to display a set of tags
Expand Down

0 comments on commit 247e925

Please sign in to comment.