Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README-zh.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## SubmitButto

[![Travis](https://img.shields.io/badge/download-1.1.1-brightgreen.svg)](https://bintray.com/unstoppable/maven/submitbutton/1.1.1)
[![Travis](https://img.shields.io/badge/download-1.1.2-brightgreen.svg)](https://bintray.com/unstoppable/maven/submitbutton/1.1.2)


README: [English](https://github.com/Someonewow/SubmitButton/blob/master/README.md) | [中文](https://github.com/Someonewow/SubmitButton/blob/master/README-zh.md)
Expand All @@ -23,7 +23,7 @@ README: [English](https://github.com/Someonewow/SubmitButton/blob/master/README.

dependencies {
'''
compile 'com.unstoppable:submitbutton:1.1.1'
compile 'com.unstoppable:submitbutton:1.1.2'
}

##### 2.布局文件中添加SubmitButton;
Expand Down Expand Up @@ -74,7 +74,12 @@ README: [English](https://github.com/Someonewow/SubmitButton/blob/master/README.

## 更新日志

#### 当前版本:1.1.1
#### 当前版本:1.1.2

- **修复由于硬件加速导致的在某些机型上无法绘制动画的问题**


#### 版本:1.1.1

- **增加结果动画结束回调接口**

Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## SubmitButto

[![Travis](https://img.shields.io/badge/download-1.1.1-brightgreen.svg)](https://bintray.com/unstoppable/maven/submitbutton/1.1.1)
[![Travis](https://img.shields.io/badge/download-1.1.2-brightgreen.svg)](https://bintray.com/unstoppable/maven/submitbutton/1.1.2)


README: [English](https://github.com/Someonewow/SubmitButton/blob/master/README.md) | [中文](https://github.com/Someonewow/SubmitButton/blob/master/README-zh.md)
Expand All @@ -22,7 +22,7 @@ README: [English](https://github.com/Someonewow/SubmitButton/blob/master/README.

dependencies {
'''
compile 'com.unstoppable:submitbutton:1.1.1'
compile 'com.unstoppable:submitbutton:1.1.2'
}

##### 2.Add SubmitButton to the layout file;
Expand Down Expand Up @@ -73,7 +73,11 @@ README: [English](https://github.com/Someonewow/SubmitButton/blob/master/README.

## Changelog

#### Current Version:1.1.1
#### Current Version:1.1.2

- **Fix bugs that can not be displayed on some phones because of HardwareAccelerated.**

#### Version:1.1.1

- **Add animation end callback interface.**

Expand Down
2 changes: 1 addition & 1 deletion submitbuttonview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ publish {
userOrg = 'unstoppable'
groupId = 'com.unstoppable'
artifactId = 'submitbutton'
publishVersion = '1.1.1'
publishVersion = '1.1.2'
desc = 'It\'s a submit button with a fun animation for Android.'
website = 'https://github.com/Someonewow/SubmitButton'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ public SubmitButton(Context context, AttributeSet attrs, int defStyleAttr) {
textSize = (int) typedArray.getDimension(R.styleable.SubmitButton_buttonTextSize, sp2px(15));
progressStyle = typedArray.getInt(R.styleable.SubmitButton_progressStyle, STYLE_LOADING);
typedArray.recycle();
//关闭硬件加速
this.setLayerType(LAYER_TYPE_SOFTWARE,null);
init();
}

Expand Down