https://github.com/jabirdev/multilineradiogroup
Simple Multi-Line Radio Group uses a RecyclerView to display Radio Buttons on more than one line.
https://github.com/jabirdev/multilineradiogroup
kotlin-android material-design radio-buttons recyclerview
Last synced: 2 months ago
JSON representation
Simple Multi-Line Radio Group uses a RecyclerView to display Radio Buttons on more than one line.
- Host: GitHub
- URL: https://github.com/jabirdev/multilineradiogroup
- Owner: JabirDev
- Created: 2021-12-17T23:45:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-18T01:12:01.000Z (over 4 years ago)
- Last Synced: 2025-06-12T13:07:51.975Z (about 1 year ago)
- Topics: kotlin-android, material-design, radio-buttons, recyclerview
- Language: Kotlin
- Homepage:
- Size: 280 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MultiLineRadioGroup [](https://www.jitpack.io/#JabirDev/MultiLineRadioGroup/0.1.0)
Simple MultiLine Radio Group

## Setup
Add it to your build.gradle with:
```gradle
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
```
and:
```gradle
dependencies {
implementation 'com.github.JabirDev:MultiLineRadioGroup:{latest version}'
}
```
## Add Layout
```xml
```
## Add string-array at strings.xml
```xml
Mantap
Jiwa
Keren
Uy
Wow
Yuhu
Yey
Net Not
Wkwk
Top
```
## Add listener in Activity/Fragment
```kotlin
binding.myRadioGroup.setOnChoseListener = MultiLineRadioGroup.OnChoseListener {position, text ->
binding.text.text = "Selected: $position $text"
}
```