Relative Content

Tag Archive for androidkotlinmobile

android studio – why is the TextView missing?

I have a FrameLayout and using the bottom navigation View there is a switching of 3 fragments. When the button is clicked, TextViews are created in the Main Fragment. The problem is that when switching from the main fragment to the second and returning to the main fragment, the created TextView disappears. How it can be solved. That is, I need the TextView to stay on the fragment

Android Studio error – No value passed for parameter

I’m trying to make an app with a simple profile creation screen that transitions to the next screen, here known as the ‘Welcome’ screen, but there appears to be one error that’s keeping it from doing just that.

“adjustResize” cutting of some parts on actual phone on bottom drawer

I hope you can help me. Have tried quite a few things but could not find a solution.
I have a bottom drawer in my App where you can enter some values with edittext fields. I have set the windowSoftInputMode to adjustResize and evverything works perfectly in the emulator (tested with API 31 & 34).
But on my actual phone API 34 (Android 14) Samsung, quite a lot is cut off.
My bottom drawer is a layout XML that is called in my fragment on button press.
I am using raw kotlin and android, no jetpack or something.
Here some code snippets (written in Kotlin):