摘要:
首先定义一个实现类 public class OnViewGlobalLayoutListener implements ViewTreeObserver.OnGlobalLayoutListener { private int maxHeight = 500; private View view; 阅读全文
posted @ 2021-02-01 11:41
FlowLiver
阅读(1275)
评论(0)
推荐(1)
摘要:
/** * 弹窗的一些配置 * @param activity * @param dialog * @param canCancel 是否可以点击外部取掉 * @param isBgDark 背景是否不变暗 0为不 1为是 */ public void showDialog(Activity act 阅读全文
posted @ 2021-02-01 11:33
FlowLiver
阅读(1559)
评论(0)
推荐(0)
摘要:
/** * 获取屏幕宽度 * @param context * @return */ public static int getScreenWidth(Context context) { WindowManager windowManager = (WindowManager) context.g 阅读全文
posted @ 2021-02-01 11:01
FlowLiver
阅读(184)
评论(0)
推荐(0)

浙公网安备 33010602011771号