Assigned
Status Update
Comments
ra...@google.com <ra...@google.com> #2
It looks like aosp/3205674 has caused these benchmarks to improve. Aurimas, was that expected from your CL?
em...@gmail.com <em...@gmail.com> #3
Over to
Description
Jetpack Compose version: 2024.09.00
Jetpack Compose component used: Column with verticalScroll
Android Studio Build:
Kotlin version:
Device Model: Pixel 9
Android Version: 36
TalkBack Version: 15.0.0
## Issue Description
In a Column with the scrollView modifier enabled, and having a list of Text, where the second one should be last in the talkback flow, when the last item visible in the scrollView is focused instead of scrolling and going to the next it goes to this last item mentioned ( as its the last one visible on the screen )
Expected behavior:
For talkback to respect the traversalIndex of items that are not shown on screen yet.
Actual behavior:
It does not respect this value.
Steps to Reproduce or Code Sample to Reproduce:
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContent {
MyApplicationTheme {
Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding ->
Column(
modifier = Modifier
.padding(innerPadding)
.verticalScroll(rememberScrollState())
.semantics { isTraversalGroup = true },
verticalArrangement = Arrangement.spacedBy(4.dp)
) {
Text(
text = "-1",
fontSize = 80.sp,
modifier = Modifier
.fillMaxWidth()
.semantics {
heading()
traversalIndex = -1f
},
)
Text(
text = "1000",
fontSize = 80.sp,
modifier = Modifier
.fillMaxWidth()
.semantics {
traversalIndex = 1000f
},
)
for (i in 0 until 100) {
Text(
text = i.toString(),
modifier = Modifier
.fillMaxWidth()
.semantics {
traversalIndex = i.toFloat()
},
fontSize = 80.sp
)
}
}
}
}
}
}
}