Commit 861d4612 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 12331ef3
...@@ -300,9 +300,9 @@ class MainActivity : BaseActivity(), View.OnClickListener { ...@@ -300,9 +300,9 @@ class MainActivity : BaseActivity(), View.OnClickListener {
it.findViewById<TextView>(R.id.tv_float).setOnClickListener { backPhoneDialog() } it.findViewById<TextView>(R.id.tv_float).setOnClickListener { backPhoneDialog() }
} }
// 设置吸附方式,共15种模式,详情参考SidePattern // 设置吸附方式,共15种模式,详情参考SidePattern
.setSidePattern(SidePattern.RESULT_HORIZONTAL) .setSidePattern(SidePattern.RESULT_LEFT)
// 设置浮窗是否可拖拽,默认可拖拽 // 设置浮窗是否可拖拽,默认可拖拽
.setDragEnable(false) .setDragEnable(true)
// 系统浮窗是否包含EditText,仅针对系统浮窗,默认不包含 // 系统浮窗是否包含EditText,仅针对系统浮窗,默认不包含
.hasEditText(false) .hasEditText(false)
// 设置浮窗的对齐方式和坐标偏移量 // 设置浮窗的对齐方式和坐标偏移量
......
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