Radio Buttons & Radio Groups – Android Studio Tutorial



In this video we will learn, how to use RadioButtons and RadioGroups. We will react to clicks and display our selection in a Toast message and in a TextView.
Radio Groups will make sure, that we can select only one Radio Button at a time.
RadioButtons are helpful to implement multiple choice features into your app.

Check out the source code:

____________________
❗ Subscribe to the channel:

⏯ Watch more tutorials:

㊙ Help translating the videos:

💚 Support the content:

💬 Join the Discord chat:

🎧 Audiobooks and podcasts for programmers:

👶 How to get started with Android development:

📣 Follow Coding in Flow on social media:

Facebook:

Instagram:

Twitter:

Blog:

Nguồn: https://laneletters.com/

Xem thêm bài viết khác: https://laneletters.com/cong-nghe/

  • You didnt mention ID for radio group

    M Shakthivel June 27, 2020 12:11 pm Reply
  • It's been helpful. Thanks a lot.

    Konuku Sirisha June 27, 2020 12:11 pm Reply
  • Sir, app will crash when click saveBtn without checking any radioBtn.. what to do

    Think Different June 27, 2020 12:11 pm Reply
  • I'm glad when I find one of your videos about what I need to know, Thank you Sir

    Think Different June 27, 2020 12:11 pm Reply
  • checkButton function seems not used. or is it ??

    mas bro June 27, 2020 12:11 pm Reply
  • Sir, i have one radio button, once i select it, i want it to unselect. But i am unable to unselect it. please tell

    Ravi Singla June 27, 2020 12:11 pm Reply
  • krass es ist wichtig, dass man die objekte in die onCreate methode initialisiert sonst crasht es

    patrickFREE June 27, 2020 12:11 pm Reply
  • Hurray!!! I was the 1000th person who likes this video.

    Team Pluto June 27, 2020 12:11 pm Reply
  • method checkbutton(android.View.view)is never used. how to solve toast is not showing i did as same as your

    Kingbhishma9 June 27, 2020 12:11 pm Reply
  • Thank you 🙏

    Tech Know How-ZAMBIA June 27, 2020 12:11 pm Reply
  • I have radio buttons with digits, 101, 201 etc. I want to do: int value = radiobutton.getText(); I tried with Interger.parseInt, even with tag="101"-> radiobutton.getTag().ToString() but that didn't word either….. I get a NullPointerExeption every time. do you know how to fix it?

    Filip Moniuszko June 27, 2020 12:11 pm Reply
  • Great and helpful video. I watched all of your videos about android studio because they are really easy to follow and understandable. keep making such kind of videos. Thank you very much

    Uz Techie June 27, 2020 12:11 pm Reply
  • Hello. How can i post this result to an web service while i clicked to submit

    Erdem Bozdağ June 27, 2020 12:11 pm Reply
  • what if send data to another activity , pls help 🙁

    abigail kael June 27, 2020 12:11 pm Reply
  • Yeah, nice video, fast and correct programming(local variables), but would be better that the person of video was is a dynamic travesti.

    luke cross June 27, 2020 12:11 pm Reply
  • Your videos are giving me clear insights on how to use these components. Thank you so much for the simple and clear explanation :).

    nexgen.graphics June 27, 2020 12:11 pm Reply
  • Thanks! For This. Your all Videos understandable 👍👍 keep doing that (from Kyrgyzstan)

    SKETCHWARE June 27, 2020 12:11 pm Reply
  • hola bro, como me puedo comunicar contigo?

    Alex Rendon June 27, 2020 12:11 pm Reply
  • I like your "nice" 😀 It was very helpful, thank you very much!

    Wiktor Kubasiak June 27, 2020 12:11 pm Reply
  • Can we group other views as well if we want to select just one out of the presented options? For example, i want to show 4 letters as options in textviews or buttons, and only 1 option is to be chosen., how do i do this? Please help.

    Muzzamil Anwaar June 27, 2020 12:11 pm Reply
  • how if we make radioButton use radioGroup but the radioButton don't straight through to bottom ?

    jong Sumatra June 27, 2020 12:11 pm Reply
  • Not able to change position of radio group without getting it out of group in constraint layout ,please help.

    Anita Khosla June 27, 2020 12:11 pm Reply
  • For good Android tutorials on YouTube, you apparently have to choose between an outrageous Indian accent or an outrageous German accent.

    GrumpyOldMan June 27, 2020 12:11 pm Reply

Leave a Reply

Your email address will not be published. Required fields are marked *