摘要: 转载自http://blog.163.com/freemanls@126/blog/static/164585061201171210504864/前言首先我们要知道setTag方法是干什么的,SDK解释为TagsUnlike IDs, tags are not used to identify v... 阅读全文
posted @ 2015-08-24 21:19 fightzhao 阅读(231) 评论(0) 推荐(0)
摘要: TextView的setCompoundDrawables不显示问题解决 TextView可以用过调用setCompoundDrawables设置一张图片出现在上下左右四个地方。代码如下: Drawable drawable = getResources().getDrawable(R.drawab... 阅读全文
posted @ 2015-08-24 21:00 fightzhao 阅读(1581) 评论(0) 推荐(0)
摘要: int[] location = new int[2] ;view.getLocationInWindow(location); //获取在当前窗口内的绝对坐标view.getLocationOnScreen(location);//获取在整个屏幕内的绝对坐标location [0]--->x坐标,... 阅读全文
posted @ 2015-08-24 20:54 fightzhao 阅读(238) 评论(0) 推荐(0)
摘要: 转载http://www.cnblogs.com/mengdd/p/3569127.html 阅读全文
posted @ 2015-08-24 20:01 fightzhao 阅读(134) 评论(0) 推荐(0)
摘要: 转载:http://blog.csdn.net/lmj623565791/article/details/45059587;本文出自:【张鸿洋的博客】 阅读全文
posted @ 2015-08-19 08:52 fightzhao 阅读(154) 评论(0) 推荐(0)
摘要: oldPrice.setPaintFlags(oldPrice.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);PS:oldPrice就是一个价格的TextView 阅读全文
posted @ 2015-08-18 10:28 fightzhao 阅读(429) 评论(0) 推荐(0)
摘要: 无意中在Stack Overflow找到解决方法:依次点击Tools->Android->Enable ADB Integration active.即可. 阅读全文
posted @ 2015-08-18 08:58 fightzhao 阅读(375) 评论(0) 推荐(0)
摘要: 转载来自zhf651555765的BLOG原始出处、作者信息和本声明。否则将追究法律责任。http://smallwoniu.blog.51cto.com/3911954/1308959现如今主流的Android应用中,都少不了左右滑动滚屏这项功能,(貌似现在好多人使用智能机都习惯性的有事没事的左右... 阅读全文
posted @ 2015-08-17 13:38 fightzhao 阅读(446) 评论(0) 推荐(0)
摘要: 可见(visible)XML文件:android:visibility="visible"Java代码:view.setVisibility(View.VISIBLE);不可见(invisible)XML文件:android:visibility="invisible"Java代码:view.set... 阅读全文
posted @ 2015-08-17 11:21 fightzhao 阅读(257) 评论(0) 推荐(0)
摘要: Java的IO流是实现输入输出的基础,他可以方便的实现数据的输入输出操作。1,字节流和字符流 字节流主要由InputStream和OutputStream作为基类,而字符流主要由Reader和Writer作为基类。 阅读全文
posted @ 2015-08-06 21:40 fightzhao 阅读(118) 评论(0) 推荐(0)