Text Fields - Jetpack Compose

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии •

  • @zachyang1041
    @zachyang1041 9 месяцев назад

    Love it when you show us different text field in the end of this video.

  • @hadjsaidaoumer3058
    @hadjsaidaoumer3058 11 месяцев назад +2

    Thank yooooooooooou the best one 👌👌👌👌👌👌👌👌👌👌

  • @brigadir5830
    @brigadir5830 Год назад +1

    Спасибо за отличный курс. Всего вам хорошего.❤❤❤

  • @zepra2133
    @zepra2133 2 года назад

    awesome, always deep and understandable explanation 👏

  • @heshamabdo6024
    @heshamabdo6024 2 года назад

    great video contains a lot of information, thank you

  • @zayka5640
    @zayka5640 Год назад

    Thank you ❤

  • @ericgacoki2225
    @ericgacoki2225 3 года назад +1

    Nice one! Likes for this Guy!...ooookay!

  • @siarheisudakou4455
    @siarheisudakou4455 3 года назад

    Stefan, thanks a lot!

  • @hackersparadise
    @hackersparadise Год назад

    I've a textfield in dialog that I am opening through compose navigation but whenever I try to type anything into it It erases that.

  • @pumacientifico8317
    @pumacientifico8317 4 месяца назад

    What about the cursor and selection style or behavior?

  • @mustafaammar551
    @mustafaammar551 3 года назад

    Very cool video thank you bro

  • @siva_subramaniam
    @siva_subramaniam 2 года назад

    bm: 11:27

  • @dalaeddine4894
    @dalaeddine4894 3 года назад

    Thank you . keep going

  • @arctic9016
    @arctic9016 2 года назад

    Hi, how can we disable bottom line of the text when textfield has focus, not the indicator ?

  • @lutherevangelista605
    @lutherevangelista605 2 года назад

    new subscriber!

  • @anmolsinghsahi7991
    @anmolsinghsahi7991 2 года назад

    How to display hint in BasicTextField, stefan?

  • @sonusdulcis
    @sonusdulcis 2 года назад

    thank you sooooooooooo muchhhhhhh

  • @geoffreyengatkinson
    @geoffreyengatkinson 3 года назад

    Column(
    modifier = Modifier
    .fillMaxSize(),
    horizontalAlignment = Alignment.CenterHorizontally,
    verticalArrangement = Arrangement.Center
    ) {
    val text = remember { mutableStateOf(TextFieldValue("Text")) }
    OutlinedTextField(value = text.value,
    onValueChange = { text.value = it },
    label = { Text("Test") })
    }

  • @kartikagarwal1795
    @kartikagarwal1795 2 года назад

    How to remove initial default padding before content in Text Field with XML it easy, how to achieve in Jetpack. ?

  • @peterfraga4023
    @peterfraga4023 3 года назад

    Hi Professor, I
    fun Greeting() {
    Column(modifier = Modifier
    .fillMaxSize(),
    horizontalAlignment = Alignment.CenterHorizontally,
    verticalArrangement = Arrangement.Center
    ) {
    // error on this line
    (value = text, = { -> //Error on TextField as well as onValueChange, newText also...
    = //Error here also...
    })
    }
    }
    Can you help please...
    Is there an option or import I am missing.

  • @adarshtechstore
    @adarshtechstore 2 года назад

    can You Provide Login Page It Include Validation in Text Field?

  • @wojciechmierzejewski7048
    @wojciechmierzejewski7048 Год назад

    how do you get search bar in Logcat?

  • @rafaeldeazeredo3770
    @rafaeldeazeredo3770 3 года назад

    I started learning today the Jetpack Compose, how do you save the TextField typed value when you rotate the screen?

    • @rafaeldeazeredo3770
      @rafaeldeazeredo3770 3 года назад +1

      I don't know if this is the best way but it worked
      I've changed this line:
      var text by remember {
      mutableStateOf("") }
      to:
      var text by rememberSaveable {
      mutableStateOf("") }

    • @StevdzaSan
      @StevdzaSan  3 года назад +5

      Yep that's one way. You can also hoist the state in a ViewModel.

  • @qusaiatoon2802
    @qusaiatoon2802 3 года назад

    Is it better to manage text fiealds with Viewmodel
    or is that too much work for a simple thing ??

    • @StevdzaSan
      @StevdzaSan  3 года назад +1

      Yes state hoisting to view model is a preferred way.

    • @qusaiatoon2802
      @qusaiatoon2802 3 года назад

      @@StevdzaSan Ok, but do I make a ViewModel for every textFieald in my Application, Or should I put it in the viewModel that manages the usecase that the textField is involved in?

    • @StevdzaSan
      @StevdzaSan  3 года назад +1

      @@qusaiatoon2802 You can make a View Model per one screen of yours.

    • @qusaiatoon2802
      @qusaiatoon2802 3 года назад +1

      @@StevdzaSan Thanks for replying
      You are a great developer And Teacher ❤

  • @moforemmanuel158
    @moforemmanuel158 2 года назад

    does this have a github repo

  • @abada-s
    @abada-s 3 года назад

    I hope to add video how to migrate from xml to compose

  • @You-i7h
    @You-i7h Год назад

    colors = TextFieldDefaults.colors(
    focusedTextColor = Color.Black,
    unfocusedTextColor = Color.Gray,
    focusedContainerColor = Color.White,
    unfocusedContainerColor = Color.White,
    focusedIndicatorColor = Color.Blue,
    unfocusedIndicatorColor = Color.Blue,
    focusedLabelColor = Color.Gray,
    unfocusedLabelColor = Color.Gray,
    cursorColor = Color.Black,
    )
    .

  • @Channel-kn3zq
    @Channel-kn3zq 2 года назад

    ty

  • @testwhwhja
    @testwhwhja 3 года назад

    why did't use xml for the design

  • @andreray1795
    @andreray1795 Год назад

    background color don't work in textField

  • @hassanharera
    @hassanharera 3 года назад +1

    Very nice, I think it's better to make the android studio theme high contrast for better see

  • @mohammadamirkanjoori138
    @mohammadamirkanjoori138 2 года назад

    nice

  • @Cloudy-19-x
    @Cloudy-19-x 3 месяца назад

  • @aminelhag
    @aminelhag 2 года назад

    Thank to You Stevdza-san ( ノ ゚ー゚)ノ Keep Going