Skip to content

Commit

Permalink
发布2.1.1版本
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexiangjys committed Nov 29, 2021
1 parent 8f75e99 commit f4ec7c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ The following is the version description. Choose one.
dependencies {
...
// androidx project
implementation 'com.github.xuexiangjys:XUpdate:2.1.0'
implementation 'com.github.xuexiangjys:XUpdate:2.1.1'
}
```

Expand Down Expand Up @@ -264,6 +264,7 @@ Field name | Type | Default value | Description
:-|:-:|:-:|:-
mThemeColor | int | R.color.xupdate_default_theme_color | Theme colors (background colors for progress bars and buttons)
mTopResId | int | R.drawable.xupdate_bg_app_top | Top background image resource ID
mTopDrawableTag | String | "" | Top background image drawable tag
mButtonTextColor | int | 0 | Button text color
mSupportBackgroundUpdate | boolean | false | Whether background updates are supported
mWidthRatio | float | -1(Unconstrained) | The ratio of the width of the version update prompter to the screen
Expand Down Expand Up @@ -390,6 +391,8 @@ By setting the update top picture, theme color, button text color, width to heig
* promptThemeColor: Set theme color
* promptButtonTextColor: Set the text color of the button
* promptTopResId: Set top background image Resource ID
* promptTopDrawable: Set top background image drawable
* promptTopBitmap: Set top background image bitmap
* promptWidthRatio: Set the ratio of the width of the version update prompt to the screen. The default value is -1(No constraint is required).
* promptHeightRatio: Set the ratio of the height of the version update prompt to the screen. The default value is -1(No constraint is required).

Expand Down
7 changes: 5 additions & 2 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ allprojects {
dependencies {
...
// androidx版本
implementation 'com.github.xuexiangjys:XUpdate:2.1.0'
implementation 'com.github.xuexiangjys:XUpdate:2.1.1'
}
```

Expand Down Expand Up @@ -263,6 +263,7 @@ mIsShowNotification | boolean | false | 是否在通知栏上显示下载进度
:-|:-:|:-:|:-
mThemeColor | int | R.color.xupdate_default_theme_color | 主题色(进度条和按钮的背景色)
mTopResId | int | R.drawable.xupdate_bg_app_top | 顶部背景图片资源id
mTopDrawableTag | String | "" | 顶部背景图片Drawable标识
mButtonTextColor | int | 0 | 按钮文字颜色
mSupportBackgroundUpdate | boolean | false | 是否支持后台更新
mWidthRatio | float | -1(无约束) | 版本更新提示器宽度占屏幕的比例
Expand Down Expand Up @@ -385,7 +386,9 @@ XUpdate.newBuild(getActivity())

* promptThemeColor: 设置主题颜色
* promptButtonTextColor: 设置按钮的文字颜色
* promptTopResId: 设置顶部背景图片
* promptTopResId: 设置顶部背景图片资源ID
* promptTopDrawable: 设置顶部背景图片
* promptTopBitmap: 设置顶部背景图片
* promptWidthRatio: 设置版本更新提示器宽度占屏幕的比例,默认是-1,不做约束
* promptHeightRatio: 设置版本更新提示器高度占屏幕的比例,默认是-1,不做约束

Expand Down

0 comments on commit f4ec7c1

Please sign in to comment.