-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2416cfd
commit 2e9bbbd
Showing
5 changed files
with
99 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
app/src/main/java/com/android/puy/mvpkotlin/CenterPopupForIpSetting.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//package com.android.puy.mvpkotlin | ||
// | ||
//import android.app.Activity | ||
//import com.lxj.xpopup.core.CenterPopupView | ||
// | ||
///** | ||
// * Created by puy on 2021/4/22 15:56 | ||
// */ | ||
//class CenterPopupForIpSetting(val context: Activity) : CenterPopupView(context) { | ||
// | ||
// override fun getImplLayoutId(): Int = R.layout.dialog_ip_setting_loading | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
app/src/main/java/com/android/puy/mvpkotlin/XpopupPriorityDialog.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
//package com.android.puy.mvpkotlin | ||
// | ||
//import com.android.puy.puymvpjava.dialogmanager.OnDismissListener | ||
//import com.android.puy.puymvpjava.dialogmanager.OnShowListener | ||
//import com.android.puy.puymvpjava.dialogmanager.PriorityDialog | ||
//import com.lxj.xpopup.XPopup | ||
//import com.lxj.xpopup.core.BasePopupView | ||
//import com.lxj.xpopup.interfaces.XPopupCallback | ||
// | ||
///** | ||
// * Created by puy on 2021/4/22 15:40 | ||
// */ | ||
//class XpopupPriorityDialog(val xPopup: XPopup.Builder) : PriorityDialog { | ||
// var mBasepopupView: BasePopupView? = null | ||
// var mDismissListener: OnDismissListener? = null | ||
// var mShowListener: OnShowListener? = null | ||
// | ||
// init { | ||
// xPopup.setPopupCallback(object :XPopupCallback{ | ||
// override fun onBackPressed(popupView: BasePopupView?): Boolean { | ||
// return false | ||
// } | ||
// | ||
// override fun onDrag(popupView: BasePopupView?, value: Int, percent: Float, upOrLeft: Boolean) { | ||
// } | ||
// | ||
// override fun onDismiss(popupView: BasePopupView?) { | ||
// mDismissListener?.onDismiss(isCrowdOut) | ||
// } | ||
// | ||
// override fun onKeyBoardStateChanged(popupView: BasePopupView?, height: Int) { | ||
// } | ||
// | ||
// override fun beforeShow(popupView: BasePopupView?) { | ||
// } | ||
// | ||
// override fun onCreated(popupView: BasePopupView?) { | ||
// } | ||
// | ||
// override fun beforeDismiss(popupView: BasePopupView?) { | ||
// } | ||
// | ||
// override fun onShow(popupView: BasePopupView?) { | ||
// mShowListener?.onShow() | ||
// } | ||
// }) | ||
// } | ||
// | ||
// fun asCustom(popupView: BasePopupView): BasePopupView?{ | ||
// mBasepopupView = xPopup.asCustom(popupView) | ||
// return mBasepopupView | ||
// } | ||
// | ||
// /** | ||
// * 是否被挤出(每个实现DialogManager.Dialog的窗口类都需要新建该变量) | ||
// */ | ||
// private var isCrowdOut = false | ||
// override fun dismiss(boolean: Boolean) { | ||
// isCrowdOut = boolean | ||
// } | ||
// | ||
// override fun show() { | ||
// mBasepopupView?.show() | ||
// } | ||
// | ||
// override fun setOnDismissListener(listener: OnDismissListener?) { | ||
// mDismissListener = listener | ||
// } | ||
// | ||
// override fun setOnShowListener(listener: OnShowListener?) { | ||
// mShowListener = listener | ||
// } | ||
// | ||
// override fun isCanShow(): Boolean { | ||
// return true | ||
// } | ||
//} |