# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
没有合适的资源?快使用搜索试试~ 我知道了~
小米3计算器滑动控件源码
共59个文件
png:19个
class:13个
xml:11个
5星 · 超过95%的资源 需积分: 15 88 下载量 95 浏览量
2014-05-30
11:20:08
上传
评论 3
收藏 1.37MB ZIP 举报
温馨提示
在android4.0以后,有switch控件,类似于iPhone上面滑块的效果,但是只能用在4.0以后的系统中,之前的平台,就无法使用这种控件。近段时间,看到了小米3手机上自带的计算器app,有这样的效果,上面的一个控件,觉得很漂亮,并且与iPhone上的效果略有不同,于是自己动手编写了一下这个功能,在编写的过程中,参考过网上的一些demo,运行后,在控件滑动的时候,感觉动画不平滑,有卡顿的现象,反复修改,最后还是有一些问题,感觉是在滑动中的状态,没有合理的控制好。无奈只能参考Google的Switch.java源码,发现其在onTouchEvent函数中,设置了多个变量,用户控制滑动中的各种状态。
资源推荐
资源详情
资源评论
收起资源包目录
MySwitchView.zip (59个子文件)
MySwitchView
.project 848B
project.properties 563B
src
com
coder80
switchview
MainActivity.java 2KB
MySwitchView.java 25KB
AndroidManifest.xml 883B
res
drawable-ldpi
drawable-hdpi
ic_launcher.png 7KB
slip_btn.png 10KB
switch_pressed1.png 1KB
switch_frame.png 2KB
switch_pressed.png 1KB
switch_mask.png 562B
values-v11
styles.xml 334B
menu
drawable-mdpi
ic_launcher.png 4KB
layout
activity_main.xml 935B
values-sw600dp
dimens.xml 203B
drawable-xxhdpi
ic_launcher.png 24KB
drawable-xhdpi
ic_launcher.png 12KB
values
attrs.xml 2KB
strings.xml 265B
styles.xml 755B
dimens.xml 220B
values-sw720dp-land
dimens.xml 277B
values-v14
styles.xml 391B
.settings
org.eclipse.jdt.core.prefs 177B
assets
gen
com
coder80
switchview
BuildConfig.java 164B
R.java 20KB
libs
android-support-v4.jar 543KB
.classpath 475B
.gitignore 48B
proguard-project.txt 781B
ic_launcher-web.png 50KB
bin
resources.ap_ 55KB
classes
com
coder80
switchview
R$layout.class 415B
R$style.class 470B
R$dimen.class 473B
BuildConfig.class 353B
R$drawable.class 599B
R$attr.class 724B
R$id.class 399B
R.class 723B
R$string.class 508B
MySwitchView.class 16KB
MainActivity.class 1KB
MySwitchView$AnimationTransRunnable.class 2KB
R$styleable.class 2KB
MySwitchView.apk 272KB
AndroidManifest.xml 883B
dexedLibs
android-support-v4-c98d6d5d4b3330ab1358fcc4453de0d0.jar 206KB
jarlist.cache 120B
res
crunch
drawable-hdpi
ic_launcher.png 6KB
slip_btn.png 9KB
switch_pressed1.png 1KB
switch_frame.png 2KB
switch_pressed.png 1KB
switch_mask.png 562B
drawable-mdpi
ic_launcher.png 3KB
drawable-xxhdpi
ic_launcher.png 17KB
drawable-xhdpi
ic_launcher.png 9KB
classes.dex 626KB
共 59 条
- 1
资源评论
- wechengjun2015-01-18自学者,可以参考下。
- 卟开心2014-10-27还可以,能借鉴里面的东西
- qq_285839152015-08-07哈哈哈哈 阿加萨i奥斯哈什级静安寺别闹阿苏
- adRene2014-06-25还不错,可供参考
Coder80
- 粉丝: 31
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功