| | |
| | | setContentView(viewBinding.getRoot()); |
| | | Window window = getWindow(); |
| | | if (window != null) { |
| | | window.setLayout(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); |
| | | window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); |
| | | WindowManager.LayoutParams layoutParams = window.getAttributes(); |
| | | layoutParams.gravity = Gravity.TOP | Gravity.END; |
| | | layoutParams.y = (int) UnitConversionUtils.dpToPx(mContext, 180 - 44); |
| | | layoutParams.y = (int) UnitConversionUtils.dpToPx(mContext, 185 - 44); |
| | | layoutParams.x = (int) UnitConversionUtils.dpToPx(mContext, 32); |
| | | layoutParams.width = (int) UnitConversionUtils.dpToPx(mContext, 100); |
| | | // layoutParams.width = (int) UnitConversionUtils.dpToPx(mContext, 100); |
| | | window.setAttributes(layoutParams); |
| | | } |
| | | setDialogTouchOutsideCloseable(this); |