Некоторые поля становятся невидимыми после создания onResume в Jetpack.Android

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Некоторые поля становятся невидимыми после создания onResume в Jetpack.

Сообщение Anonymous »


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
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»