工具方法
文章平均质量分 50
SoulOfAndroid
这个作者很懒,什么都没留下…
展开
-
根据色值和透明度获取新的色值
private static int calculateStatusColor(@ColorInt int color, int alpha) { if (alpha == 0) { return color; } float a = 1 - alpha / 255f; int red = color ...原创 2018-05-04 10:48:38 · 1263 阅读 · 0 评论 -
获取Android设备状态栏高度
/** * 获取状态栏高度 * @param context context * @return 状态栏高度 */ private static int getStatusBarHeight(Context context) { // 获得状态栏高度 int resourceId = context.getRes...原创 2018-05-04 10:50:22 · 354 阅读 · 0 评论 -
FrameLayout 方法 getChildCount 返回View的的思考
<?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/my_content_fl" android:layout_width="match_parent"原创 2018-05-04 11:11:56 · 1054 阅读 · 0 评论 -
Android PhoneWindow View层次结构
原创 2018-05-04 11:16:22 · 699 阅读 · 0 评论