Replies: 4 comments 6 replies
-
Were you able to find an answer to this? |
Beta Was this translation helpful? Give feedback.
-
Changing the MainActivity.ks file to this: package // Keep the old value here
import android.os.Bundle
import androidx.core.view.WindowCompat
class MainActivity : TauriActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
WindowCompat.setDecorFitsSystemWindows(window, false)
}
} and adding this to the theme file (i forgot its path) <item name="android:statusBarColor" tools:targetApi="l">@android:color/transparent</item> should mostly work. A problem with this is opening the keyboard doesn't shift the layout so if you have input fields at the bottom half of the screen they won't be visibile anymore. I did not look into how to best solve this yet. |
Beta Was this translation helpful? Give feedback.
-
is there a way to use it like a function? my app doesn't need all the time, just in reader mode |
Beta Was this translation helpful? Give feedback.
-
for anyone wondering if you add ViewCompat.setOnApplyWindowInsetsListener(findViewById(android.R.id.content)) { view: View, insets: WindowInsetsCompat ->
val bottomInset = insets.getInsets(WindowInsetsCompat.Type.ime()).bottom
view.setPadding(0, 0, 0, bottomInset)
insets
} in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i'm working with tauri 2 for building android app.
but didn't find a way to set the Activity fullscreen and how to hide the status bar ?
does anyone can help me? even just some idea is very thanks.
Beta Was this translation helpful? Give feedback.
All reactions