
Android
wzyzzu
这个作者很懒,什么都没留下…
展开
-
Android之drawable state各个属性详解
我们在定义一个drawable的时候可以通过xml定义的drawable对象。它使得一个图片能在不同的状态下显示不同的图案,比如一个Button,它有pressed,focused,或者其它状态,通过使用state list drawable,你就可以为每种状态提供不同的图片。 先看一个范例: XML file saved at res/drawable/button.xm转载 2013-12-30 17:29:50 · 790 阅读 · 0 评论 -
Your project contains error(s),please fix them before running your application
android运行项目出现Your project contains error(s),please fix them before running your application异常时 除了一下几种可能外: 1.网上查询最多的是:project--clean 2.在项目列表里删除该项目,再导入 3.删除R.java文件然后自动重建 4.升级ADT到最新版本 5.重启ecli原创 2013-12-25 22:50:43 · 679 阅读 · 0 评论 -
android.view.InflateException
android出现android.view.InflateException异常 指出是android.view.InflateException 即android视图中的膨胀异常,故很可能是有资源图片像素过大,超出手机处理范围,尝试降低图片像素测试。原创 2013-12-25 22:54:52 · 794 阅读 · 0 评论 -
Android常用控件总结
Android常用控件总结 1.Button:按钮单击事件 Button button = (Button) this.findViewById(R.id.imageButton); // 设置图片按钮的背景 button.setBackgroundResource(R.dr原创 2013-12-25 22:43:16 · 978 阅读 · 0 评论