You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+88-15Lines changed: 88 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@
7
7
8
8
InsetsX provides a [WindowInsets](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/WindowInsets) utility for [Compose Multiplatform](https://www.jetbrains.com/lp/compose-multiplatform/).
9
9
10
-
It aim to work with WindowInsets with the same interface on iOS and Android.
10
+
The goal is to have a unified interface for handling WindowInsets across iOS and Android.
11
11
12
-
This library will be archived when the official library can handle WindowInsets.
12
+
Once the official library supports WindowInsets, this library will be archived.
13
13
14
14
## Setup
15
-
Add the dependency as follows:
15
+
To use InsetsX, add the following dependency:
16
16
17
17
```kotlin
18
18
kotlin {
@@ -28,37 +28,110 @@ kotlin {
28
28
}
29
29
```
30
30
31
+
### Android
32
+
1. (option) If you are using insets for IME support, set the activity's `windowSoftInputMode` to `adjustResize` in your AndroidManifest.xml file.
33
+
34
+
```xml
35
+
<activity
36
+
android:name=".MyActivity"
37
+
android:windowSoftInputMode="adjustResize">
38
+
</activity>
39
+
```
40
+
41
+
2. Call `WindowCompat.setDecorFitsSystemWindows()` with `false` in the `onCreate` method of the activity .
0 commit comments