自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

工匠荷风的博客

不积跬步,无以至千里;不积小流,无以成江海。

  • 博客(5)
  • 资源 (4)
  • 收藏
  • 关注

原创 Android Canvas.drawText垂直居中问题三种情况

官方文档: public void drawText (String text, float x, float y, Paint paint)Parameters text The text to be drawn x The x-coordinate of the origin of the text being drawn y The y-coordinate of th

2016-05-17 22:40:03 660

原创 一图了解View的生命周期,自定义view,invalidate()和requestLayout()调用

Android中View的生命周期,调用invalidate()和requestLayout()会触发哪些方法,一图道破天机。该图确实一看就非常清晰、让人简单的了解View的生命周期,也可以帮助我们更好的去掌握如何自定义view。

2016-05-18 16:18:46 423

转载 android PopupWindow

在android中弹出框有两种方式:AlertDialog和PopupWindow,它们的不同点在于: 1、AlertDialog的位置固定,而PopupWindow的位置可以随意; 2、AlertDialog是非阻塞线程的,而PopupWindow是阻塞线程的; PopupWindow使用 PopupWindow这个类用来实现一个弹出框,可以使用任意布局的View作为其内容

2016-04-29 00:26:48 228

原创 android保持屏幕常亮

/* Window flag: as long as this window is visible to the user, keep the device’s screen turned on and bright. / public static final int FLAG_KEEP_SCREEN_ON = 0x00000080;WindowManager提供了FLAG_KEEP_SCREE

2016-04-28 21:54:58 278

原创 android:duplicateParentState="true"

android:duplicateParentStateWhen this attribute is set to true, the view gets its drawable state (focused, pressed, etc.) from its direct parent rather than from itself.Must be a boolean v

2016-04-27 18:32:50 724

google官方volley最新版

官方地址:https://android.googlesource.com/platform/frameworks/volley 最新volley提交于:Sun Mar 13 16:35:59 2016 +0000

2016-05-26

高仿qq设置页面的布局

这是QQ设置界面的UI布局实现、、通过自定义PreferenceActivity,做出跟QQ一样的设置界面

2013-12-09

android 引导页

第一次安装的程序,一般都会有引导页。现在这个例子是优化以后最简洁完善的引导页demo,可以直接移植到你的项目中去。

2013-12-09

Android最佳学习路线图

您还在为怎么学Android发愁吗?还在为不知道下一步怎么走郁闷吗?《Android最佳学习路线图》是你最好的选择

2013-01-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除