Skip to content

Commit f4ec7c1

Browse files
committed
发布2.1.1版本
1 parent 8f75e99 commit f4ec7c1

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ The following is the version description. Choose one.
182182
dependencies {
183183
...
184184
// androidx project
185-
implementation 'com.github.xuexiangjys:XUpdate:2.1.0'
185+
implementation 'com.github.xuexiangjys:XUpdate:2.1.1'
186186
}
187187
```
188188

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

README_ZH.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ allprojects {
181181
dependencies {
182182
...
183183
// androidx版本
184-
implementation 'com.github.xuexiangjys:XUpdate:2.1.0'
184+
implementation 'com.github.xuexiangjys:XUpdate:2.1.1'
185185
}
186186
```
187187

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

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

0 commit comments

Comments
 (0)