Skip to content

Commit

Permalink
Release: v1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
whilu committed Dec 1, 2018
1 parent 5eb7829 commit c188c32
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add below dependency in your **build.gradle** file.

```groovy
dependencies {
compile 'co.lujun:androidtagview:1.1.5'
compile 'co.lujun:androidtagview:1.1.6'
}
```

Expand Down Expand Up @@ -72,7 +72,8 @@ Now, you have successfully created some TagViews. The following will show some m
| tag_border_color | color | TagView border color(default #88F44336)
| tag_background_color | color | TagView background color(default #33F44336)
| tag_max_length | integer | The max length for TagView(default max length 23)
| tag_clickable | boolean | Whether TagView can clickable(default unclickable)
| tag_clickable | boolean | Whether TagView can clickable(default false)
| tag_selectable | boolean | Whether TagView can be selectable(default false)
| tag_theme | enum | The TagView [theme](#themes)
| tag_text_direction | enum | The TagView text [direction](#directions)
| tag_ripple_color | color | The ripple effect color(default #EEEEEE)
Expand Down Expand Up @@ -127,6 +128,11 @@ mTagContainerLayout.setOnTagClickListener(new TagView.OnTagClickListener() {
public void onTagLongClick(final int position, String text) {
// ...
}

@Override
public void onSelectedTagDrag(int position, String text){
// ...
}

@Override
public void onTagCrossClick(int position) {
Expand Down Expand Up @@ -209,6 +215,9 @@ mTagcontainerLayout.setTags(tags, colors);

## Change logs

### 1.1.6(2018-12-1)
- Support tag selectable

### 1.1.5(2018-8-20)
- Allow images on tags (in LTR languages).

Expand Down
8 changes: 3 additions & 5 deletions androidtagview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 28
versionCode 115
versionName "1.1.5"
versionCode 116
versionName "1.1.6"
}
buildTypes {
release {
Expand All @@ -22,6 +22,4 @@ dependencies {
testImplementation 'junit:junit:4.12'
implementation 'androidx.appcompat:appcompat:1.0.1'
}
//TODO fix bug apply from: 'https://raw.githubusercontent.com/whilu/AndroidPublishLibrary/master/project/library/bintray_publish.gradle'
//https://github.com/google/ExoPlayer/commit/13592dfb53ec99ce1fdb2744e34717dbdec9dea8
//https://github.com/davideas/FlexibleAdapter/issues/579
apply from: 'https://raw.githubusercontent.com/whilu/AndroidPublishLibrary/master/project/library/bintray_publish.gradle'
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public static float sp2px(Context context, float sp) {
}

/**
* If the color is Dark -> make it lighter and vice versa
* If the color is Dark, make it lighter and vice versa
*
* @param color in int,
* @param factor 0.0 < factor < 1.0
* @param factor The factor greater than 0.0 and smaller than 1.0
* @return int
*/
public static int manipulateColorBrightness(int color, float factor) {
Expand Down

0 comments on commit c188c32

Please sign in to comment.