Skip to content

Commit

Permalink
发布2.9.18
Browse files Browse the repository at this point in the history
  • Loading branch information
junixapp committed Dec 29, 2022
1 parent a8a41ca commit ceee6e1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ dependencies {
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
// implementation "androidx.viewpager2:viewpager2:1.0.0"
implementation "com.umeng.umsdk:common:9.4.0"
implementation "com.umeng.umsdk:asms:1.2.3" // asms包依赖(必选)
implementation "com.umeng.umsdk:apm:1.3.1" // U-APM产品包依赖(必选)
implementation "com.umeng.umsdk:common:9.4.4"
implementation "com.umeng.umsdk:asms:1.4.1" // asms包依赖(必选)
implementation "com.umeng.umsdk:apm:1.5.2" // U-APM产品包依赖(必选)

implementation project(':library')
// implementation 'com.github.li-xiaojun:XPopup:2.9.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ public void onSelect(int position, String text) {
new XPopup.Builder(getContext())
.hasShadowBg(false)
.moveUpToKeyboard(false) //如果不加这个,评论弹窗会移动到软键盘上面
// .isViewMode(true)
.isViewMode(true)
.isDestroyOnDismiss(true) //对于只使用一次的弹窗,推荐设置这个
// .isThreeDrag(true) //是否开启三阶拖拽,如果设置enableDrag(false)则无效
.isThreeDrag(true) //是否开启三阶拖拽,如果设置enableDrag(false)则无效
.asCustom(new ZhihuCommentPopup(getContext()))
.show();
break;
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.xpopup_version = "2.9.17"
ext.xpopup_version = "2.9.18"
repositories {
google()
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ dependencies {
implementation 'com.github.li-xiaojun:EasyAdapter:1.2.8'
implementation 'com.github.bumptech.glide:glide:4.12.0'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0'
implementation 'com.github.mmin18:realtimeblurview:1.2.1'
annotationProcessor "androidx.lifecycle:lifecycle-compiler:2.3.1"
}
2 changes: 2 additions & 0 deletions library/src/main/java/com/lxj/xpopup/util/XPopupUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ public static void applyPopupSize(final ViewGroup content, final int maxWidth, f
final int popupWidth, final int popupHeight, final Runnable afterApplySize) {
content.post(() -> {
ViewGroup.LayoutParams params = content.getLayoutParams();
if(content==null) return;
View implView = content.getChildAt(0);
if(implView==null) return;
ViewGroup.LayoutParams implParams = implView.getLayoutParams();
// 假设默认Content宽是match,高是wrap
int w = content.getMeasuredWidth();
Expand Down

0 comments on commit ceee6e1

Please sign in to comment.