An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# MultiLineRadioGroup [![Release](https://jitpack.io/v/jitpack/maven-simple.svg?style=flat-square)](https://www.jitpack.io/#JabirDev/MultiLineRadioGroup/0.1.0)
Simple MultiLine Radio Group

![DEMO](https://raw.githubusercontent.com/JabirDev/MultiLineRadioGroup/master/multiline-radio-group.gif)

## 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"
}
```