Skip to content

Commit 3f95451

Browse files
committed
feat:更新simple
1 parent 0c3f9bd commit 3f95451

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

app/src/main/java/com/petterp/floatingx/app/CustomApplication.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import com.petterp.floatingx.config.Direction
1111
* @Function
1212
*/
1313
class 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
}

app/src/main/java/com/petterp/floatingx/app/ImmersedActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 // 防止状态栏、底部导航栏隐藏时,内容区域大小发生变化
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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>

0 commit comments

Comments
 (0)