diff --git a/README.md b/README.md index 3e78533..dcb1613 100644 --- a/README.md +++ b/README.md @@ -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' } ``` @@ -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 @@ -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). diff --git a/README_ZH.md b/README_ZH.md index ee6d3b6..3e46c6a 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -181,7 +181,7 @@ allprojects { dependencies { ... // androidx版本 - implementation 'com.github.xuexiangjys:XUpdate:2.1.0' + implementation 'com.github.xuexiangjys:XUpdate:2.1.1' } ``` @@ -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(无约束) | 版本更新提示器宽度占屏幕的比例 @@ -385,7 +386,9 @@ XUpdate.newBuild(getActivity()) * promptThemeColor: 设置主题颜色 * promptButtonTextColor: 设置按钮的文字颜色 -* promptTopResId: 设置顶部背景图片 +* promptTopResId: 设置顶部背景图片资源ID +* promptTopDrawable: 设置顶部背景图片 +* promptTopBitmap: 设置顶部背景图片 * promptWidthRatio: 设置版本更新提示器宽度占屏幕的比例,默认是-1,不做约束 * promptHeightRatio: 设置版本更新提示器高度占屏幕的比例,默认是-1,不做约束