Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/binaryshao/FreeRadioGroup

类似于苹果的虚拟辅助按钮,可以淡出、拖动、松手后自动贴边等
https://github.com/binaryshao/FreeRadioGroup

Last synced: 3 months ago
JSON representation

类似于苹果的虚拟辅助按钮,可以淡出、拖动、松手后自动贴边等

Awesome Lists containing this project

README

        

demo演示:

![](https://github.com/Sbingo/FreeRadioGroup/raw/master/gif/FreeRadioGroup.gif)

### Description

1. This is a **moveable** RadioGroup could **fade out**, and **auto return to its parent's left or right**, it has **no side effect** to RadioGroup's setOnCheckedChangeListener method .

2. Though it's a RadioGroup , the ideas used here make it very easy for you to custom your own View or ViewGroup which reacts in the similar way.

### Usage

- In your root build.gradle add:

```
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```

- Add the dependency
```
compile 'com.github.Sbingo:FreeRadioGroup:v1.0.0'
```

- In the xml layout file:

```
//是否能拖动

.
.
.

```

### If you feel it's useful, just give me a **star**, thank you~

### 公众号
![as彬哥六六六](https://s2.ax1x.com/2019/03/26/AapwMq.jpg)