File tree Expand file tree Collapse file tree
java/com/petterp/floatingx/app Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import com.petterp.floatingx.config.Direction
1111 * @Function
1212 */
1313class CustomApplication : Application () {
14+
1415 override fun onCreate () {
1516 super .onCreate()
1617 FloatingX .init {
@@ -22,12 +23,6 @@ class CustomApplication : Application() {
2223 NewActivity ::class .java,
2324 ImmersedActivity ::class .java
2425 )
25- lBorder(100f )
26- tBorder(100f )
27- rBorder(100f )
28- bBorder(100f )
29- moveEdge(10f )
30- y(70f )
3126 }
3227 FloatingX .isDebug(true )
3328 }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class ImmersedActivity : AppCompatActivity() {
1818 override fun onCreate (savedInstanceState : Bundle ? ) {
1919 super .onCreate(savedInstanceState)
2020 requestWindowFeature(Window .FEATURE_NO_TITLE ) // 这行代码一定要在setContentView之前,不然会闪退
21- setContentView(R .layout.new_activity )
21+ setContentView(R .layout.activity_immersed )
2222 window.addFlags(WindowManager .LayoutParams .FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS )
2323 window.decorView.systemUiVisibility = (
2424 View .SYSTEM_UI_FLAG_LAYOUT_STABLE // 防止状态栏、底部导航栏隐藏时,内容区域大小发生变化
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3+ android : layout_width =" match_parent"
4+ android : layout_height =" match_parent" >
5+
6+ </androidx .constraintlayout.widget.ConstraintLayout>
You can’t perform that action at this time.
0 commit comments