找回密码
 立即注册
MySlipSwitch0.2classesbin | android开发 2022-10-29 85 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
这个DEMO仅有的故障在于重写的View默许是以屏幕的左上原点为参考点,我还没有找到什么好的方法可以直接让这个重写的View像大家平常用的控件那样直接在大家需求的布局里,现在暂时使用多重嵌套布局来实现定位,也等待坛里的大牛点拨下。这份源代码可以实现通过外部按钮修复开关状况,也可以通过控件本身来修复开关状况。本资料共包括以下附件:
MySlipSwitch0.2\bin\classes\com\qing\MainActivity$1.class
MySlipSwitch0.2\bin\classes\com\qing\MainActivity$2.class
MySlipSwitch0.2\bin\classes\com\qing\MainActivity.class
MySlipSwitch0.2\bin\classes\com\qing\MySlipSwitch$OnSwitchListener.class
MySlipSwitch0.2\bin\classes\com\qing\MySlipSwitch.class
MySlipSwitch0.2\bin\classes\com\qing\R$attr.class
MySlipSwitch0.2\bin\classes\com\qing\R$drawable.class
MySlipSwitch0.2\bin\classes\com\qing\R$id.class
MySlipSwitch0.2\bin\classes\com\qing\R$layout.class
MySlipSwitch0.2\bin\classes\com\qing\R$string.class
MySlipSwitch0.2\bin\classes\com\qing\R.class
MySlipSwitch0.2\bin\res\drawable-hdpi\bkg_switch.png
MySlipSwitch0.2\bin\res\drawable-hdpi\btn_slip.png
MySlipSwitch0.2\bin\res\drawable-hdpi\ic_launcher.png
MySlipSwitch0.2\bin\res\drawable-ldpi\ic_launcher.png
MySlipSwitch0.2\bin\res\drawable-mdpi\ic_launcher.png
MySlipSwitch0.2\bin\classes.dex
MySlipSwitch0.2\bin\MySlipSwitch0.2.apk
MySlipSwitch0.2\bin\MySlipSwitch0.4.apk
MySlipSwitch0.2\bin\MySlipSwitch.apk
MySlipSwitch0.2\bin\resources.ap_
MySlipSwitch0.2\gen\com\qing\R.java
MySlipSwitch0.2\res\drawable-hdpi\bkg_switch.png
MySlipSwitch0.2\res\drawable-hdpi\btn_slip.png
MySlipSwitch0.2\res\drawable-hdpi\ic_launcher.png
MySlipSwitch0.2\res\drawable-ldpi\ic_launcher.png
MySlipSwitch0.2\res\drawable-mdpi\ic_launcher.png
MySlipSwitch0.2\res\layout\main.xml
MySlipSwitch0.2\res\values\strings.xml
MySlipSwitch0.2\src\com\qing\MainActivity.java
.....太多文件了省略.....

(The only problem with this DEMO is that the rewritten view implicitly takes the upper left origin of the screen as the reference point. I haven't found any good way to directly let this rewritten view be in the layout you need, just like the controls you usually use. Now, we temporarily use multiple nested layouts to achieve positioning, but also wait for the big cows in the world to call. This source code can repair the switch status through external buttons, or through the control itself. This document includes the following annexes:
MySlipSwitch0.2\bin\classes\com\qing\MainActivity$1.class
MySlipSwitch0.2\bin\classes\com\qing\MainActivity$2.class
MySlipSwitch0.2\bin\classes\com\qing\MainActivity.class
MySlipSwitch0.2\bin\classes\com\qing\MySlipSwitch$OnSwitchListener.class
MySlipSwitch0.2\bin\classes\com\qing\MySlipSwitch.class
MySlipSwitch0.2\bin\classes\com\qing\R$attr.class
MySlipSwitch0.2\bin\classes\com\qing\R$drawable.class
MySlipSwitch0.2\bin\classes\com\qing\R$id.class
MySlipSwitch0.2\bin\classes\com\qing\R$layout.class
MySlipSwitch0.2\bin\classes\com\qing\R$string.class
MySlipSwitch0.2\bin\classes\com\qing\R.class
MySlipSwitch0.2\bin\res\drawable-hdpi\bkg_ switch.png
MySlipSwitch0.2\bin\res\drawable-hdpi\btn_ slip.png
MySlipSwitch0.2\bin\res\drawable-hdpi\ic_ launcher.png
MySlipSwitch0.2\bin\res\drawable-ldpi\ic_ launcher.png
MySlipSwitch0.2\bin\res\drawable-mdpi\ic_ launcher.png
MySlipSwitch0.2\bin\classes.dex
MySlipSwitch0.2\bin\MySlipSwitch0.2.apk
MySlipSwitch0.2\bin\MySlipSwitch0.4.apk
MySlipSwitch0.2\bin\MySlipSwitch.apk
MySlipSwitch0.2\bin\resources.ap_
MySlipSwitch0.2\gen\com\qing\R.java
MySlipSwitch0.2\res\drawable-hdpi\bkg_ switch.png
MySlipSwitch0.2\res\drawable-hdpi\btn_ slip.png
MySlipSwitch0.2\res\drawable-hdpi\ic_ launcher.png
MySlipSwitch0.2\res\drawable-ldpi\ic_ launcher.png
MySlipSwitch0.2\res\drawable-mdpi\ic_ launcher.png
MySlipSwitch0.2\res\layout\main.xml
MySlipSwitch0.2\res\values\strings.xml
MySlipSwitch0.2\src\com\qing\MainActivity.java
..... Too many files omitted)

[下载]15371798427.rar




上一篇:Android 经典示例,初学者的绝好源码资料
下一篇:2012春-3-第三讲-应用运行过程分析和电话拔打器1