![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android基础
阳城浪子
学海无涯
展开
-
performClick()方法的使用
1. performClick()方法的作用: performClick()方法 是使用代码主动去调用控件的点击事件(模拟人手去触摸控件)2. 使用注意事项: 如果同时使用了view.setOnTouchListener()方法,则有可能存在拦截view.performClick()的响应事件, 因为当view.OnTouchEvent()在event.getAc原创 2016-07-30 11:42:12 · 25338 阅读 · 4 评论 -
Expected resource of type animator......
Android Studio项目迁移时遇到了Expected resource of type animator......的错误提示(项目SDK版本有所变化),错误代码:错误提示:解决方法:在res目录下新建一个animator文件夹,把原来anim文件夹中的文件移到animator目录下,再把资源id中的anim改成animator即可,然后项目不再报错。原创 2016-07-31 12:24:14 · 1021 阅读 · 0 评论 -
Android 更新UI的几种方法
总结一下Android中常用的更新UI的方法:1. 用handler的post方法更新UI2. 在handleMessage()方法中更新UI3. 用runOnUiThread()方法更新UI4. 用view的post方法更新UI用一个TextView作为实例:public class MainActivity extends AppCompatActivity { private Tex原创 2016-08-07 17:01:29 · 988 阅读 · 0 评论 -
sdk\system-images\android-23\android-wear\armeabi-v7a\devices.xml cvc-complex-type.2.4.d: 发现了以元素 'd:
最近更新了SDK后每次打开eclipse都会报错,错误如下:sdk\system-images\android-23\android-wear\armeabi-v7a\devices.xmlcvc-complex-type.2.4.d: 发现了以元素 'd:skin' 开头的无效内容。此处不应含有子元素。点击OK后虽然不影响使用,但看着错误不解决总感觉不舒服,于是决定解决了原创 2016-09-12 09:13:28 · 2948 阅读 · 1 评论 -
Using version 1.0.0-alpha8 of the constraint library, which is obsolete
最近在使用ConstraintLayout 时报错如下:Using version 1.0.0-alpha8 of the constraint library, which is obsolete查询之后发现是ConstraintLayout版本过低,既然知道了错误原因问题就容易解决了。解决方案:用SDK Manager更新ConstraintLayout 的版本,然后更改gra原创 2016-10-10 19:36:21 · 1326 阅读 · 0 评论 -
Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be fo
在用Xutils时想打开相关类的源码看看,却出现提示:Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.这个是说你的方法或者引用的类,没有连到相应的source上,也就是 ***.java上。自然也就找显示不对应的代码和注释。但是原创 2016-09-25 21:26:23 · 2511 阅读 · 0 评论