-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TP04: Get User Input #39
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MyOutlinedTextField:
@composable
fun MyOutlinedTextField() {
Column {
OutlinedTextField(
value = "",
onValueChange = {},
label = { Text("Label") }
)
}
}
Fungsi dari Atribut keyboardOptions pada TextField:
keyboardOptions digunakan untuk mengatur tampilan dan perilaku keyboard saat pengguna berinteraksi dengan
TextField
. Ini memungkinkan penyesuaian sederhana seperti menentukan tipe keyboard atau mengaktifkan mode khusus.Contoh Penggunaan Komponen Input:
Aplikasi yang Dapat Di-scroll di Layar Kecil:
@composable
fun MyScrollableApp() {
Column(
modifier = Modifier.verticalScroll(rememberScrollState())
) {
// Isi konten aplikasi di sini
}
}
Sanity Check dalam Input Pengguna:
Sanity check adalah langkah-langkah sederhana untuk memastikan bahwa data yang dimasukkan pengguna sesuai dengan harapan. Hal ini dilakukan untuk mencegah masalah atau kesalahan yang mungkin terjadi.
The text was updated successfully, but these errors were encountered: