![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
安卓
BishZzz
悄悄咪咪的努力鸭
展开
-
安卓查看UE紧急电话号码配置
FYI:adb shell getprop ril.ecclist原创 2021-10-30 18:47:42 · 137 阅读 · 0 评论 -
安卓dp值与px值的相互转换
FYI:px值转dp值public static int pxtodp(Context context, float pxValue){ final float scale = context.getResources().getDisplayMetrics().density; return (int) (pxValue / scale + 0.5f);}dp值转px值public static int dptopx(Context context, float dipValue) {原创 2021-10-30 18:42:05 · 122 阅读 · 0 评论 -
安卓framework以及services的push方法
一、framework1. 编译frameworkmake framework2. Push frameworkadb rootadb remountadb push out/target/product/xxxxx/system/framework/arm/* /system/framework/arm/adb push out/target/product/xxxxx/system/framework/framework.jar /system/framework/adb push原创 2021-10-30 18:30:14 · 464 阅读 · 0 评论 -
Android状态栏StatusBar颜色修改
<!-- 文字及图标颜色:true为深色,false为浅色 --><item name="android:windowLightStatusBar">true</item><!-- 背景色 --><item name="android:statusBarColor">?android:attr/colorPrimary</item>原创 2021-08-05 14:21:01 · 1780 阅读 · 0 评论 -
关于Android中TextView去除Padding
Android TextView控件在文本的上下两侧都有一个padding,所以控件的高度会大于文本自身的高度,在显示上,TextView控件和其上方和下方的控件有一个明显的间距。在XML中提供了android:includeFontPadding的配置参数,此参数默认值为true,也就是包含字体padding。可以将其设置为false,来去掉字体padding。此项设置会影响TextView和上方控件的间距,不影响下方控件的间距。即使去掉了字体padding,TextView控件和上方的控件仍然会有一转载 2021-05-07 15:16:17 · 1539 阅读 · 0 评论 -
关于Android 多用户配置的梳理
源码如下:/** * Returns whether this device supports multiple users with their own login and customizable * space. * @return whether the device supports multiple users. */public static boolean supportsMultipleUsers() { return getMaxSupportedUsers() &g原创 2021-05-07 11:13:06 · 970 阅读 · 1 评论 -
关于android Log的isLoggable定义
什么是isLoggable?isLoggable是android.util.Log提供的方法,用于检查指定Log的TAG的level是否满足打印条件,如满足则返回true反之则返回false。源码中关于isLoggable的注释isLoggable在源码中的注释如下:/** * Checks to see whether or not a log for the specified tag is loggable at the specified level. * *原创 2021-05-07 10:38:22 · 767 阅读 · 0 评论 -
Android.mk文件的简单解析
首先,Android.mk文件位于项目jni/目录中的子目录中。1、第一行,必须先定义LOCAL_PATH变量。LOCAL_PATH : = $(call my-dir)表示源文件在开发树中的位置。my-dir将返回当前目录(Android.mk文件本身所在的目录)的路径。2、第二行,申明CLEAR_VARS变量,其值由编译系统提供。include $(CLEAR_VARS...原创 2019-07-04 14:41:05 · 282 阅读 · 1 评论