Android Custom Spinner | Spinner Customization Step By Step - Android Studio Tutorial

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

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

  • @SimonBostock
    @SimonBostock 3 года назад +4

    This was a very concise video, it helped me to not only implement a custom spinner but an understanding of how one is put together, thanks for creating this.

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

      Great to hear! Thanks for the feedback!!!

  • @SumanDas-ey8ro
    @SumanDas-ey8ro 3 года назад +1

    Spinner... Wow... 🤘🤘🤘

  • @Mirtguitar
    @Mirtguitar 7 месяцев назад

    Good tutorial

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

    Thanks for making this i want to make action when it click on any item ?

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

    Great video. Really thanks. I have just one question please. Can I click on the options to navigate to others activities, and if yes, how?

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

      Use onItemSelected method. Watch part 01

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

      I saw part 1. I have no problem doing it with popup dialog. It's just complicated with spinner and exported dropdown menus.
      Please help 🙏

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

      @@mohamedakazim1909 what do you want to make?

    • @mohamedakazim1909
      @mohamedakazim1909 2 года назад +1

      I want those options to do things, like opening an activity

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

      use onItemSelected method

  • @Gheorghicastefan
    @Gheorghicastefan 2 года назад +1

    Hello sir, many thanks for the video, I have followed the instructions but the spinner only shows me the last element from Data class, is there a chance you could know what might be the issue?

    • @DailyCoding
      @DailyCoding  2 года назад +1

      Rather than guessing, I would like to see your code. May I?

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

    Thanks you so much !

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

    what if there are two spinner ?? if we click on one pinner other arrow will also be change ?

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

      You can add a check with the spinner id before changing the deawable

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

    what you did in the sskipped part?

  • @alpha3836
    @alpha3836 2 года назад +1

    How do I change the font of the spinner nad the elements within?
    How to keep a default text on spinner

    • @DailyCoding
      @DailyCoding  2 года назад +1

      If you are following this tutorial then just use font family in the layout file of XML.

    • @alpha3836
      @alpha3836 2 года назад +1

      @@DailyCoding and how do i keep a default text like "Select item" On the spinner?
      Should I just add it like another list item, and not put any functionality behind it?

    • @DailyCoding
      @DailyCoding  2 года назад +1

      Yes to highlight the selected item use onItemSelected listener. Or just watch the first video of the Spinner Playlist. It's easy! Try that out.

    • @alpha3836
      @alpha3836 2 года назад +1

      @@DailyCoding Okay i'll try that, thank you.

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

    hi sir, i create searchable spinner use the popupwindow and icons but i have a few tablayout, is spinner opened change layout popupwindow stay bug. Every Tabs vew is open popupwindow(spinnerlist). I am try setOutSideTouchable(true) but this searchable method is destroyed. do you have any idea what i should do?

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

      Join Telegram and post your queries. Anyway, How are you using popup window? using Dialog class??

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

    Hello great video ,thank for that.
    But how to get selected Fruit in a text view ?

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

      Thanks for your feedback.
      Here is how you can make the spinner item selected. Just use onItemSelected()
      ruclips.net/video/X7Xz5ixKVhs/видео.html

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

    How to get an item by index form spinner filled by xml?

  • @ankitankit-hg3fh
    @ankitankit-hg3fh Год назад

    🎉

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

    but you did not show how to get spinner value ???? please tell me here

    • @DailyCoding
      @DailyCoding  2 года назад +1

      Use onOnItemSelected listener. However You can watch part 1.

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

      same question, how to get spinner value ?

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

      @@DailyCoding part 1 link please

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

    Inventory kaisay banaya bo to dikhana tha na

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

      That's the very basic concept dude. Create a class called Inventory then create a function that will return a list.

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

    2nd viewer