- 博客(11)
- 收藏
- 关注
原创 Android中TextView首行缩进处理办法
由于设计效果,需要有个首行缩进格式的文本,但是android中textview并无首行缩进的参数设置网上搜索了半天,基本都是基于添加空格和html格式空格的方法达到缩进效果方法一:setText("\u3000\u3000"+xxxxx);方法二:这种方式不同分辨率会有问题setText(""+xxxxx);以上两种方法,不同设备都会有这样那样的问题,总是
2015-06-03 14:02:25
30626
2
原创 Android利用shape绘制虚线无效的解决办法
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <stroke android:width="1dp" android:color="#D5D5D5" android:dashWidth="2dp" andr
2015-05-07 10:46:21
2816
原创 HashMap的工作原理
昨日面试被问及这个问题,无奈HashMap初学时虽然深入探索过,之后却并无实际应用到如此深入的原理,只是初步的使用,因此便磕磕碰碰。问1:知道HashMap的工作原理么?答:根据传入的key值保存key与value组成的Entry对象。问2:那如果传入两个hashcode相同的对象会有什么问题吗?答:应该没什么问题吧,只要键值不同。(这里由于基本功不够扎实深入,引发了底气不足与肾虚
2014-12-18 13:49:15
466
原创 使用AsyncTask引发RuntimeException:sending message to a Handler on a dead thread
报错出现在onPost方法的调用,从字面意思理解,明显是线程更新界面的问题,
2014-11-07 16:12:00
3119
转载 Drawable资源
原文链接http://www.cnblogs.com/xirihanlin/archive/2010/06/14/1758145.html
2014-05-20 14:13:40
484
原创 Resources$NotFoundException: String resource ID #0x2710
总是不经意间发现这个报错,不用huaiy
2014-05-09 15:21:13
1866
转载 新版adt下android资源文件string的格式化问题
Multiple annotations found at this line: - error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute? - error: Unexpected
2014-05-09 15:08:53
564
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人