Status Update
Comments
ap...@google.com <ap...@google.com> #2
Over to Ralston to take a look. I imagine with the new relocation logic it should be fixed?
se...@google.com <se...@google.com>
al...@google.com <al...@google.com> #3
What is happening here is that the TextField does not know that it is in a scrollable container, and since the keyboard is going to hide the currently focused text, the text field calls View.requestRectangleOnScreen which causes the entire app to pan up, and that clips the top bar.
The Relocation APIs are experimental right now. It is not used in TextField as we are past the alpha stage and can only use stable APIs in TextField. So this bug can only be fixed post 1.0
as...@google.com <as...@google.com> #4
This should be fixed by
I verified that this sample code now works when soft input mode is AdjustResize.
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-main
Author: Andrei Shikov <
Link:
Revert^2 "Avoid measure on precomposed nodes until they are used"
Expand for full commit details
Revert^2 "Avoid measure on precomposed nodes until they are used"
Update `ignoreRemeasureRequests` flag in layout node to allow a third state that mark them pending instead of requesting layout. This allows to postpone relayout/remeasure until precomposed nodes are used.
Bug: 353167430
Test: LazyListPrefetcherTest
Change-Id: Ie2a303b86ecd160594e5eebeb4d7fa31826f8174
Files:
- M
compose/foundation/foundation/integration-tests/lazy-tests/src/androidTest/kotlin/androidx/compose/foundation/lazy/layout/TestPrefetchScheduler.kt
- M
compose/foundation/foundation/integration-tests/lazy-tests/src/androidTest/kotlin/androidx/compose/foundation/lazy/list/LazyListPrefetcherTest.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/layout/SubcomposeLayout.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/LayoutNode.kt
Hash: cd637f0030fee2a97c71ee48a44c028bf9682fea
Date: Thu Jul 04 19:27:19 2024
na...@google.com <na...@google.com> #6
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.foundation:foundation:1.8.0-alpha04
androidx.compose.foundation:foundation-android:1.8.0-alpha04
androidx.compose.foundation:foundation-jvmstubs:1.8.0-alpha04
androidx.compose.ui:ui:1.8.0-alpha04
androidx.compose.ui:ui-android:1.8.0-alpha04
androidx.compose.ui:ui-jvmstubs:1.8.0-alpha04
androidx.compose.ui:ui-linuxx64stubs:1.8.0-alpha04
Description
Have not extracted a repro yet buthttps://android-review.googlesource.com/c/platform/frameworks/support/+/3160211 now generate crashes with LazyLayout + Text + Placeholder.
The suspect would be the usage of a local copy of
Example usage: