弹簧效果切换按钮
来源:互联网 发布:java枚举类型enum 编辑:程序博客网 时间:2024/06/11 22:34
利用facebook的弹簧库
附上github地址:https://github.com/xiaobinbin7530/ReboundButton
Step 1 Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects { repositories { ... maven { url 'https://jitpack.io' } }}
Step 2 Add the dependency
dependencies { compile 'com.github.xiaobinbin7530:ReboundButton:V1.0'}
Step 3
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.linekong.rebound.myreboundbutton.MainActivity"> <com.linekong.rebound.reboundbutton.MySpringSwitchButton android:id="@+id/myToggleButton" android:layout_width="165dp" android:layout_height="50dp" android:background="#171e23" android:layout_alignParentRight="true" android:layout_marginTop="30dp" android:layout_marginRight="35dp" android:focusable="true" app:leftText = "启用" app:rightText = "禁用" app:textSize="16sp" app:textCheckedColor="#FFFFFF" app:textUnCheckedColor="#5f6465" app:backRectColor="#074ebf" /></RelativeLayout>
阅读全文
0 0
- 弹簧效果切换按钮
- 按钮切换效果
- 按钮切换效果
- 按钮背景效果切换 selector
- JavaScript 弹簧效果
- JavaScript 弹簧效果
- 关于listview弹簧效果
- Android 弹簧动画效果
- UITextView弹簧效果属性
- 弹簧动画效果
- Android 弹簧动画效果
- 果冻弹簧效果动画
- 弹簧动画效果
- iOS动画实现:弹簧效果
- iOS动画实现:弹簧效果
- iOS动画之弹簧效果
- iOS UIScrollview 取消弹簧效果
- Android_UI_点击按钮切换背景效果实现
- Win+Nginx+PHP+MySQL环境搭建
- JavaScript面向对象编程
- PHP缓存技术
- uva 1382
- 活者的原则
- 弹簧效果切换按钮
- 不要把学生气带入社会
- vmware虚拟机NAT模式下网络配置
- mysql索引优化
- Virtualbox 安装gost xp
- linux 下编译安装php mongodb扩展
- HDU-4825 Xor Sum (Trie 字典树 2014年百度之星程序设计大赛-资格赛)
- 如何在ubuntu下安装sublime text 2…
- 二进制求和-LintCode