windowinsets Questions

1

I'm trying to learn window insets in Compose so I can try to implement edge to edge. One thing I notice with Scaffold is: content - content of the screen. The lambda receives a PaddingValues that ...
Ileostomy asked 1/5, 2023 at 6:9

4

Solved

I'm using Scaffold for my main screen with a fixed bottomBar that is visible in every screen of the app, and I'm applying the innerPadding of the Scaffold to its content. I want the keyboard to app...

14

I would like to calculate the navigationBar height. I've seen this presentation : https://chris.banes.me/talks/2017/becoming-a-master-window-fitter-nyc/ So, I tried to use the method View.setOnApp...
Quote asked 6/1, 2019 at 15:7

1

Why when I use setOnApplyWindowInsetsListener statusBar color disappears? fun isKeyboardVisible(view: View) { ViewCompat.setOnApplyWindowInsetsListener(view) { view, windowInsets -> val isK...
Squander asked 21/10, 2021 at 9:1

0

In my app I use single activity - MainActivity with multiple fragments. In Manifest file I set activity's windowSoftInputMode to adjustResize because I need that behaviour in majority of fragments ...
Umbilicus asked 6/7, 2022 at 8:54

2

I'm trying to update my App to Android 11. Many Screens of my App were Designed with App Content behind the StatusBar. I Updated my gradle to Android 11 and started updating the Window code to get ...
Vaginectomy asked 1/10, 2020 at 10:47

1

App normally has this navigation bar: But when I add ViewCompat.setOnApplyWindowInsetsListener() ViewCompat.setOnApplyWindowInsetsListener(window.decorView) { _, insets -> binding.showingKeybo...
Kolnick asked 30/9, 2021 at 9:7

2

Solved

I'm trying to get edge-to-edge (https://youtu.be/OCHEjeLC_UY?t=1635) working correctly on API 21 up to 29. I'm using this on my v27\themes.xml: <item name="android:windowLightNavigationBar"&gt...
Curran asked 31/7, 2019 at 14:44

0

Thanks to this great answer here: https://mcmap.net/q/36205/-how-to-check-visibility-of-software-keyboard-in-android we can now track when keyboard is shown in Android... Unfortunateñy I have found...
Solstice asked 29/9, 2021 at 8:29

2

Pre-Android 11 (API Level 30) I had <item name="android:windowLightStatusBar">true</item> set in my theme and was additionally changing this (when needed) in the the code with...
Gaylagayle asked 22/10, 2020 at 12:5

3

Question: How to use the latest WindowInset API to adjust space betweeen my dialog and softkeyboard? I have a BottomSheetDialog with some EditText. The default animation will show the soft keyboar...

1

I can't get my pages of my ViewPager respect the statusbar height. My ViewPager has several pages, on one of them there is an image that needs to go under the translucent statusbar. The rest of the...
Anglomania asked 30/7, 2018 at 9:29

3

Solved

I am trying to learn about the Android OS and while I was reading the Google I/O 2014 app, I came across the WindowInsets. If anyone can explain what they are then it would be a great help. Thank y...
Condolence asked 7/11, 2015 at 16:49

0

I've been working on updating my best practices showcase app with the latest Android Architecture Components, and ran into this issue. I'm using the Navigation Component and fragments to create my...
Pensile asked 24/12, 2019 at 21:34

7

I am trying to get the DisplayCutout and getting a java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.DisplayCutout android.view.WindowInsets.getDisplayCutout()' on a ...
Callery asked 1/12, 2018 at 21:8

2

systemWindowInsetBottom AND stableInsetBottom are both always 0 I have an Activity, that has a background texture, and I am using FLAG_LAYOUT_NO_LIMITS to let that background go behind the status ...
Hasin asked 25/11, 2018 at 16:42

3

Solved

I know I can use colorPrimary to determine the color of Toolbar, and colorPrimaryDark to determine the color of Status bar. I'm using the following theme <!-- Base application theme. --> &l...

3

Following is xml for my Main activity <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app=...

1

Solved

Problem The activity layout has a DrawerLayout with a FrameLayout as content to Fragment and a LinearLayout to be opened and closed by drawer. The fragment used on content has a FrameLayout with f...
1

© 2022 - 2024 — McMap. All rights reserved.