绘制可以拖动的EditText

上传者: hongbingfans | 上传时间: 2021-06-10 21:18:18 | 文件大小: 1.15MB | 文件类型: RAR
该例子主要是介绍了自定义继承自EditText的类,实现了拖动效果,其中较为重要的步骤还是解决了,拖动时隐藏软键盘,点击时弹起软键盘,由于EditText控件的原因要解决该问题还是需要花点时间的,本人通过一上午的时间写了个demo供大家参考,如有瑕疵,请提建议,本人改正后会已0资源分重新上传上去!

文件下载

资源详情

[{"title":"( 51 个子文件 1.15MB ) 绘制可以拖动的EditText","children":[{"title":"DrawViewDemo","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 547.58KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"dexedLibs","children":[{"title":"android-support-v4-2cfeb7ff65a1e2dcbf0e77f22f233689.jar <span style='color:#111;'> 184.80KB </span>","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"com","children":[{"title":"hb","children":[{"title":"demo","children":[{"title":"DrawEdxtView$IOnKeyboardStateChangedListener.class <span style='color:#111;'> 273B </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 963B </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 382B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 450B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 386B </span>","children":null,"spread":false},{"title":"KeyboardListenRelativeLayout$IOnKeyboardStateChangedListener.class <span style='color:#111;'> 332B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 440B </span>","children":null,"spread":false},{"title":"DrawEdxtView.class <span style='color:#111;'> 4.87KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 319B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 367B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 603B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 451B </span>","children":null,"spread":false},{"title":"KeyboardListenRelativeLayout.class <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 410B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 40.01KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 864B </span>","children":null,"spread":false},{"title":"DrawViewDemo.apk <span style='color:#111;'> 230.56KB </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 334B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 263B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 229B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 220B </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'> 277B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw600dp","children":[{"title":"dimens.xml <span style='color:#111;'> 203B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 750B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"hb","children":[{"title":"demo","children":[{"title":"BuildConfig.java <span style='color:#111;'> 153B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"hb","children":[{"title":"demo","children":[{"title":"KeyboardListenRelativeLayout.java <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 546B </span>","children":null,"spread":false},{"title":"DrawEdxtView.java <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 848B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 864B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 472.91KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • sbiyou :
    知识点很详细,谢谢分享
    2016-06-08
  • wangyan04157835 :
    里面有bug,一般般,还得自己写
    2016-06-02
  • wuandroid :
    软键盘后EditText会回到原位置怎么解决
    2015-11-17
  • yangjian308 :
    非常不错。。解决了我的难题
    2015-04-13
  • pb_love_java :
    挺好的,略作修改就可以解决我的问题了
    2015-03-04

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明