上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: Constants String ACTION_ACCESSIBILITY_SETTINGS Activity Action: Show settings for accessibility modules. String ACTION_ADD_ACCOUNT Activity Action: Show add account screen for creating a new ac... 阅读全文
posted @ 2017-09-07 17:24 huyang011 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 方法一:通过修改主题来设置状态栏变透明,需要在values、values-v19、values-v21目录下分别创建相应的主题。 方法二: 通过代码设置 参考: Android 状态栏着色实践 阅读全文
posted @ 2017-09-06 12:22 huyang011 阅读(517) 评论(0) 推荐(0) 编辑
摘要: API 33 Android 13 Build.VERSION_CODES.TIRAMISU API 32 Android 12 (S_V2) Build.VERSION_CODES.S_V2 API 31 Android 12 (S) Build.VERSION_CODES.S API 30 An 阅读全文
posted @ 2017-09-06 11:16 huyang011 阅读(1592) 评论(0) 推荐(0) 编辑
摘要: pop_show_anim.xml pop_hidden_anim.xml 阅读全文
posted @ 2017-09-05 20:14 huyang011 阅读(170) 评论(0) 推荐(0) 编辑
摘要: /** * span图片垂直居中 */ public class VerticalImageSpan extends ImageSpan { @SuppressWarnings("unused") public VerticalImageSpan(Context arg0, int arg1) { su... 阅读全文
posted @ 2017-09-05 09:25 huyang011 阅读(674) 评论(0) 推荐(0) 编辑
摘要: // paint恢复为默认设置。 paint.reset(); // 从src目录中装载一种画笔的样式 paint.set(src); // 设置画笔的透明度 paint.setAlpha(a); // 设置画笔的抗锯齿情况,使画笔更为圆滑 paint.setAn... 阅读全文
posted @ 2017-09-05 08:44 huyang011 阅读(257) 评论(0) 推荐(0) 编辑
摘要: ImageSpan使用示例代码: 阅读全文
posted @ 2017-09-04 23:10 huyang011 阅读(456) 评论(0) 推荐(0) 编辑
摘要: public abstract class ClickableLinkSpan extends ClickableSpan{ private int selectedColor; public int linkColor; private boolean colored; private boolean underlined; /** ... 阅读全文
posted @ 2017-09-04 18:03 huyang011 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 从LinearLayout的onMeasure()方法开始分析:(所用代码 API 23) LinearLayout分两个方向的测量, 看一个即可。 这里选择竖直方向上的测量过程: 从 上面这段代码可以看出,系统会遍历子元素并对每个子元素执行 measureChildBeforeLayout 方法, 阅读全文
posted @ 2017-09-03 16:29 huyang011 阅读(451) 评论(0) 推荐(0) 编辑
摘要: <!-- Default theme for dialog windows and activities (on API level 10 and lower), which is used by the {@link android.app.Dialog} class. This changes 阅读全文
posted @ 2017-08-31 20:14 huyang011 阅读(728) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页