A Radio button with custom liquid animation. You can change animations duration, explode items count, radius and colors easily from xml
compile 'me.omidh:liquidradiobutton:1.0.01'
<me.omidh.liquidradiobutton.LiquidRadioButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="50dp"
android:gravity="center"
app:lrb_strokeWidth="1dp"
app:lrb_explodeCount="3"
app:lrb_outterPadding="8dp"
app:lrb_innerCircleRadius="15dp"
app:lrb_strokeRadius="23dp"
app:lrb_inAnimDuration="500"
app:lrb_outAnimDuration="500"
app:lrb_checkedColor="@android:color/holo_green_dark"
app:lrb_unCheckedColor="@android:color/holo_red_light"
android:text="Liquid Radio Button"
/>
This library is strongly inspired in this concept from Tamino Martinius in uplabs: https://site.uplabs.com/posts/liquid-radio-button-interface
Rey Pham for his great library material
tyrantgit for his great library ExplosionField
- add sample
- update readme and wiki
Omid Heshmatinia omidheshmatinia@gmail.com
Liquid Radio Button library for Android
Copyright (c) 2017 Omid Heshmatinia (https://github.com/omidheshmatinia).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.