Android two rows of Radio Buttons

This tutorial shows how to add two rows of radio buttons.

Android Radio Buttons
  1. Add Gradle dependency:

2. Add utility class to support two rows. Copy and paste below into your project. Then you will call the class in your xml.

3. Add Radio group to xml

4. Compile and run.

Let me know if you have any questions/suggestions

Thanks,

Andres

software engineer, read, swim, travel. apps: https://goo.gl/rDuuQw https://goo.gl/15GvfE

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store