Некоторые поля становятся невидимыми после создания onResume в Jetpack. ⇐ Android
-
Anonymous
Некоторые поля становятся невидимыми после создания onResume в Jetpack.
I have scaffold with some floatingActionButton and bottomBar
And the main views.
On the first layout show, all works fine, but if you push home button and go back to the application, all fields after bottomBar become invisible. Last stop of breakpoint will be on column.
Additionally I have android:windowSoftInputMode="adjustResize" flag in my androidmanifest file. But if you click on this invisible fields, then all logic will work.
Maybe its duo to scrollstate?
Scaffold( modifier = Modifier.fillMaxWidth(), floatingActionButton = {}, bottomBar = {} ) { innerPadding -> val scrollState = rememberScrollState() Column( modifier = Modifier .fillMaxWidth() .fillMaxHeight() .padding(innerPadding) .verticalScroll(scrollState), horizontalAlignment = Alignment.Start, ) { //after this line all become invisible Row(){} //become invisible } }
Источник: https://stackoverflow.com/questions/781 ... ck-compose
I have scaffold with some floatingActionButton and bottomBar
And the main views.
On the first layout show, all works fine, but if you push home button and go back to the application, all fields after bottomBar become invisible. Last stop of breakpoint will be on column.
Additionally I have android:windowSoftInputMode="adjustResize" flag in my androidmanifest file. But if you click on this invisible fields, then all logic will work.
Maybe its duo to scrollstate?
Scaffold( modifier = Modifier.fillMaxWidth(), floatingActionButton = {}, bottomBar = {} ) { innerPadding -> val scrollState = rememberScrollState() Column( modifier = Modifier .fillMaxWidth() .fillMaxHeight() .padding(innerPadding) .verticalScroll(scrollState), horizontalAlignment = Alignment.Start, ) { //after this line all become invisible Row(){} //become invisible } }
Источник: https://stackoverflow.com/questions/781 ... ck-compose
Мобильная версия