Status Update
Comments
an...@google.com <an...@google.com>
to...@gmail.com <to...@gmail.com> #2
Submitter:
Can you please provide a brief text explanation of:
- What is the summary of the issue you're seeing
- What is the expected behavior
- What is the actual behavior
- What software is showing the bug. What version of software are you reporting it against
- What operating system are you running (android version, device)
- If an app integration, what version of emojicompat or emoji2 are you linking against.
Thanks!
Description
Jetpack Compose version: 1.2.0-alpha07
Jetpack Compose component used: ui, material, navigation
Android Studio Build: Android Studio Bumblebee | 2021.1.1 Patch 3 Build #AI-211.7628.21.2111.8309675, built on March 16, 2022
Kotlin version: 1.6.10
Steps to Reproduce or Code Sample to Reproduce:
Create empty compose project.
Update activity in AndroidManifest with:
android:windowSoftInputMode="adjustResize"
Add below code to MainActivity:
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
WindowCompat.setDecorFitsSystemWindows(window, false)
setContent {
MyApplicationTheme {
val navController = rememberNavController()
NavHost(navController = navController, startDestination = "test") {
dialog("test") { Content() }
}
}
}
}
}
@Composable
fun Content() {
Column(
modifier = Modifier
.statusBarsPadding()
.imePadding()
.verticalScroll(rememberScrollState())
) {
var counter = 1
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter++}", onValueChange = {})
TextField(value = "hello${counter}", onValueChange = {})
}
}