Create Custom Switch in android || Android studio tutorial

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • In This Video I explain how to create custom switch in android studio.
    Switchs are widely used in android app designing and you can customize it to give your own look and feel.
    A switch in android is consists of two parts, one is track and the other one is thumb. By creating separate drawable resources for them you can create your custom switch.
    So, in this video I am going to show you how to do it. Watch the full video till the end to understand.
    Example code: github.com/Pri...
    Thank you guys for watching and don't forget to subscribe
    / technicalcoding
    Support us through patreon:-
    www.patreaon.c...
    check out my website:-
    technical-codi...
    Follow us on Facebook page:-
    / techno-coding-48839923...
    Follow me on Intagram:-
    / pritish174
    #switch #androidstudio #AndroidDev #Customswitch

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

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

    Looks great man, thanks for making this, just what I was looking for!

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

    Exactly I found my problem solving 💟💟👏👏

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

    Thank you brother very helpful video

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

    Nice video. Thanks

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

    you are a boss ❤️

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

    thank u really helpful stuff #Appreciate Man

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

    Really helpful, Thank you

  • @lovebeaut560
    @lovebeaut560 10 месяцев назад

    thank you very much...

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

    Thanks I got what I wanted

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

    Thank you dear indian man!

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

    Thank you very much! Very cool!

  • @Gabriel-oo2jk
    @Gabriel-oo2jk Год назад

    Obrigado, não sabe como ajudou meu parça!!!!!

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

    very nice video

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

    thank you, that's super useful

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

    thank you so much
    How to change the switch color if the switch is in disable mode

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

    The switch is really big, how can i transform this more tiny... can u help me?

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

      I intentionally make it big for others to see, you can just adjust width and height to make it fit for your project size

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

    thank you

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

    Thank you!

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

    thanks

  • @TechnicalYarana
    @TechnicalYarana 3 года назад +2

    Sir Maine ek chhota sa app banaya hai usme maine toggle button ka use kiya hai aur firebase se connect kiya hai , aur jaise mai usko enable akrta hoon to firebase me true bhej raha hoon aur jaise hi usko disable kar raha hoon to firebase me false bhej raha hoon , mera ek chhota sa question ye hai sir ki agar mai firebase me true kar du to toggle button app me bhi enable ho jaye aur jaise hi firebase me false karu vaise hi app me toggle button disable ho jaye matlab ki reverse ligic kaise kare sir please help me bahut logo ke pass comment kiya sir but koi reply nahi de raha hai please help me sir

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

      it's very simple use sharedpreference to store the data from firebase database when app is opened then use that data to at the start of the activity to toogle the button automatically with if else statement

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

      Aap whatsapp use karte hai please give me your no.

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

      @@TechnicalCoding maine aapko instagram pe sms kiya hai please reply me bro

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

      @@TechnicalCoding please reply me sir 🙏🙏🙏🙏

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

      @@TechnicalCoding hello bro maine aapko instagram pe sms kiya hai please check karo bro 9:30 ho rahe hai mera kaam kar do please

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

    How can I use switch that connected to realtime database? Like turning lamp off/on

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

      Please elaborate your query in more detail like want you want to actually want to do.

  • @Gabriel-wu1wt
    @Gabriel-wu1wt 3 года назад

    hi, how can i make it so is defaulted?

  • @imibrahimk
    @imibrahimk 10 месяцев назад

    how to add this switch on the toolbar right side ?

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

    in the dark mode text not visible what should i do

  • @2020imraj
    @2020imraj 2 года назад

    Can i use this design to customize the toggle button?

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

    how to add code so to start music