尝试用Canvas 的drawText绘字符串的时候

尝试用Canvas 的drawText绘字符串的时候, 老是有毛刺。特别是大字体,毛刺很明显。看起来很难看。 问: 如何消除这些毛刺? 或者如何绘制出平滑的字体 。 就像一般listview或者textview中的效...

2013/12/09 20:32
623
itgongfu

Jetbrains: IntelliJ IDEA Ruby Mine PyCharm WebStorm PhpStorm AppCode DotTrace ReSharper 780147-QVCCW-EUXV5-POBHU-E6HVM-KABV3 itgongfu appcode: qoophp.com LicenceKey: ===== LICEN...

key
2013/12/05 11:05
99
editView

15 down vote accepted I know you don't want to use an EditText but it's really easy to make it look like a TextView. <EditText android:id="@+id/Id" android:layout_width="fill_pa...

2013/12/02 20:02
52
edit view with icon drawable and Tag usage

Let's say you generate a bunch of views that are similar. You could set an OnClickListener for each view individually: button1.setOnClickListener(new OnClickListener ... ); butt...

2013/11/26 17:33
88
linux doc

系统 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计...

2013/11/25 00:04
47
ImageView src or background

区别一:图片透明度 两者都可以设置ImageView的背景 android:src:在设置ImageView的setAlpha()时有效果 android:background:在设置ImageView的setAlpha()时无效果 区别二:图片拉伸 backgr...

2013/11/19 11:22
119
code set gravity in code

Try using this instead: para.gravity = Gravity.CENTER_HORIZONTAL; tv2.setLayoutParams(para); //the below sets the view's content gravity, not the gravity //of the view itself. S...

2013/11/16 08:40
123
android gravity and LinerarLayout for state

gravity 这个英文单词是重心的意思,在这里就表示停靠位置的意思。 android:layout_gravity 和 android:gravity 的区别 从名字上可以看到,android:gravity是对元素本身说的,元素本身的文本...

2013/11/15 14:33
175
TextView本身可以加图片装饰

TextView本身可以加图片装饰 <TextView android:layout_marginTop="10dp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text=...

2013/10/31 15:06
57
notifyDataSetInvalidated

What is the difference? The android documentation doesn't have a description for notifyDataSetInvalidated(). I was thinking maybe you call that function to notify all registered...

2013/10/28 15:25
438

没有更多内容

加载失败,请刷新页面