Commit 72e462f2 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent d48b9df8
......@@ -84,7 +84,7 @@ class MainActivity : BaseActivity(), View.OnClickListener {
initEditView()
initEasyFloat()
// initEasyFloat()
}
override fun isApplyKitKatTranslucency(): Boolean {
......@@ -305,7 +305,7 @@ class MainActivity : BaseActivity(), View.OnClickListener {
// 系统浮窗是否包含EditText,仅针对系统浮窗,默认不包含
.hasEditText(false)
// 设置浮窗的对齐方式和坐标偏移量
.setGravity( Gravity.CENTER_VERTICAL, 0, 200)
.setGravity( Gravity.CENTER_VERTICAL, 0, 500)
// 设置宽高是否充满父布局,直接在xml设置match_parent属性无效
.setMatchParent(widthMatch = false, heightMatch = false)
// 设置Activity浮窗的出入动画,可自定义,实现相应接口即可(策略模式),无需动画直接设置为null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment