自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

only95

只为记录

  • 博客(9)
  • 收藏
  • 关注

原创 Android EditText软键盘弹出时防止布局上移和关闭软键盘

EditText软键盘弹出时防止布局上移在代码setContentView()之前加入:this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE|WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);...

2020-04-29 11:54:30 1666

转载 Android系统服务及权限设置

Android系统服务及权限设置原文 :http://blog.sina.com.cn/s/blog_66edd39d01012i46.html1 活动管理器权限 <uses-permission android:name="android.permission.GET_TASKS"/>代码 ActivityManager activityManager = (Activi...

2020-04-28 11:07:59 1286

原创 android IDEA插件官网

记录官网地址 [ https://plugins.jetbrains.com/androidstudio]

2020-04-27 10:56:17 454

原创 android设置状态栏颜色

android设置状态栏颜色在BaseActivity中设置 setWindowStatusBarColor(this, R.color.transparent,true); public void setWindowStatusBarColor(Activity activity, int colorResId,boolean dark) { try { ...

2020-04-27 10:01:52 510

转载 android 获取设备唯一ID

android 获取设备唯一ID/** * 获取设备唯一ID * @return */ @SuppressLint("MissingPermission") public static String getUUID() { String serial = null; String m_szDevIDShort = "35" + Build.BOARD.leng...

2020-04-25 13:43:36 2534

转载 java.net.UnknownServiceException: CLEARTEXT...

背景: 还是在调用远程接口,进行网络通信的时候,报了如下错误:W/System.err: java.net.UnknownServiceException: CLEARTEXTcommunication to xxx.xxx.xxx not permitted by network security policy原因:为保证用户数据和设备的安全,Google针对下一代 Android...

2020-04-15 09:29:33 253

原创 androidx 10.0 获取图片失败:报错open failed: EACCES

报错open failed: EACCES:绕了一大圈,刚开始以为是权限问题,但是我全是加了,6.0以上的权限也加了还是报错open failed: EACCES,百度找了一遍 全是说要手动添加权限的…这里做下记录需要在 AndroidManifest.xml 中加入 android:requestLegacyExternalStorage=“true”<application ...

2020-04-10 14:25:50 1478 2

原创 android EdItText保留两位小数

private TextWatcher etNumTextWatcher = new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { } @Override public void beforeTextChanged(Char...

2020-04-02 21:30:57 651

原创 Android 7.0以上 适配安装APK

Android 10 适配安装APKprivate static void install(Context context, File file) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); if (Buil...

2020-04-01 14:26:55 2407

空空如也

空空如也

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

TA关注的人

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