Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binaryshao/FreeRadioGroup
类似于苹果的虚拟辅助按钮,可以淡出、拖动、松手后自动贴边等
https://github.com/binaryshao/FreeRadioGroup
Last synced: about 1 month ago
JSON representation
类似于苹果的虚拟辅助按钮,可以淡出、拖动、松手后自动贴边等
- Host: GitHub
- URL: https://github.com/binaryshao/FreeRadioGroup
- Owner: binaryshao
- License: apache-2.0
- Created: 2016-11-13T08:44:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T09:53:53.000Z (over 5 years ago)
- Last Synced: 2024-05-22T06:10:40.933Z (7 months ago)
- Language: Java
- Homepage:
- Size: 260 KB
- Stars: 54
- Watchers: 2
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - FreeRadioGroup - 类似于苹果的虚拟辅助按钮 (按钮)
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)