Skip to content

Commit

Permalink
发布2.8.18
Browse files Browse the repository at this point in the history
  • Loading branch information
junixapp committed Sep 5, 2022
1 parent 5b6db6e commit c5cb21b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ android {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.github.li-xiaojun:EasyAdapter:1.2.7'
implementation 'com.github.li-xiaojun:EasyAdapter:1.2.8'
implementation 'com.github.li-xiaojun:StateLayout:1.3.4'
implementation 'com.github.bumptech.glide:glide:4.12.0'
implementation 'com.blankj:utilcode:1.30.6'
Expand All @@ -69,8 +69,8 @@ dependencies {
implementation "com.umeng.umsdk:asms:1.2.3" // asms包依赖(必选)
implementation "com.umeng.umsdk:apm:1.3.1" // U-APM产品包依赖(必选)

// implementation project(':library')
implementation 'com.github.li-xiaojun:XPopup:2.8.16'
implementation project(':library')
// implementation 'com.github.li-xiaojun:XPopup:2.8.16'

}

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;

import com.bumptech.glide.Glide;
import com.lxj.xpopup.core.BubbleAttachPopupView;
import com.lxj.xpopupdemo.R;

Expand All @@ -25,6 +28,7 @@ protected int getImplLayoutId() {
protected void onCreate() {
super.onCreate();
final TextView tv = findViewById(R.id.tv);
Glide.with(getContext()).load("https://t7.baidu.com/it/u=963301259,1982396977&fm=193&f=GIF").into((ImageView) findViewById(R.id.image));
tv.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public void onClick(View v) {
case R.id.test:
new XPopup.Builder(getContext())
.isDestroyOnDismiss(true)
.hasStatusBar(false)
.asCustom(new CustomCenter1(getContext()))
.show();
break;
Expand Down Expand Up @@ -415,8 +416,9 @@ public void onSelect(int position, String text) {
popupView = new XPopup.Builder(getContext())
// .isDestroyOnDismiss(true) //对于只使用一次的弹窗,推荐设置这个
.autoOpenSoftInput(true)
.hasStatusBar(false)
.popupPosition(PopupPosition.Right)//右边
.hasStatusBarShadow(true) //启用状态栏阴影
// .hasStatusBarShadow(true) //启用状态栏阴影
.setPopupCallback(new DemoXPopupListener())
.asCustom(new ListDrawerPopupView(getContext()));
popupView.show();
Expand Down
9 changes: 9 additions & 0 deletions app/src/main/res/layout/custom_bubble_attach_popup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,13 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="床前明月光,\n疑是地上霜,\n举头望明月,\n低头思故乡低头思故乡。" />


<ImageView
android:id="@+id/image"
android:background="#f1f1f1"
android:layout_marginTop="5dp"
android:scaleType="centerCrop"
android:layout_width="100dp"
android:layout_height="60dp"/>
</LinearLayout>
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.8.17"
ext.xpopup_version = "2.8.18"
repositories {
google()
mavenCentral()
Expand Down

0 comments on commit c5cb21b

Please sign in to comment.