diff --git a/OneToOne/src/main/java/com/shayu/onetoone/dialog/MatchSuccessfullyPopup.java b/OneToOne/src/main/java/com/shayu/onetoone/dialog/MatchSuccessfullyPopup.java new file mode 100644 index 000000000..d05c71389 --- /dev/null +++ b/OneToOne/src/main/java/com/shayu/onetoone/dialog/MatchSuccessfullyPopup.java @@ -0,0 +1,29 @@ +package com.shayu.onetoone.dialog; + +import android.content.Context; + +import androidx.annotation.NonNull; + +import com.lxj.xpopup.core.CenterPopupView; +import com.shayu.onetoone.R; + +/** + * 首次匹配成功 + */ +public class MatchSuccessfullyPopup extends CenterPopupView { + public MatchSuccessfullyPopup(@NonNull Context context) { + super(context); + } + + // 返回自定义弹窗的布局 + @Override + protected int getImplLayoutId() { + return R.layout.match_successfully_popup; + } + + // 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑 + @Override + protected void onCreate() { + super.onCreate(); + } +} diff --git a/OneToOne/src/main/res/layout/match_successfully_popup.xml b/OneToOne/src/main/res/layout/match_successfully_popup.xml new file mode 100644 index 000000000..c13e8ede8 --- /dev/null +++ b/OneToOne/src/main/res/layout/match_successfully_popup.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file