![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
xielunyan666
这个作者很懒,什么都没留下…
展开
-
高德地图开启混淆后不显示定位蓝点的解决方案
参考链接https://www.it610.com/article/1289903447381975040.htm我直接在混淆文件里加了-dontoptimize这个属性就好了原创 2020-09-09 08:25:30 · 657 阅读 · 0 评论 -
CheckBox不可点击
android:clickable="false"android:focusable="false"android:focusableInTouchMode="false"原创 2020-08-28 18:20:40 · 1280 阅读 · 0 评论 -
EditText 设置不可编辑
设置android:focusable="false"即可原创 2020-08-13 16:58:45 · 195 阅读 · 0 评论 -
MaterialButton 去掉默认的点击阴影动画效果
使用如下style即可:"@style/Widget.MaterialComponents.Button.UnelevatedButton"对应的style定义如下:<style name="Widget.MaterialComponents.Button.UnelevatedButton"> <item name="android:stateListAnimator" ns2:ignore="NewApi">@animator/mtrl_btn_unelev原创 2020-08-11 16:28:02 · 2213 阅读 · 0 评论 -
Recyclerview ItemDecoration 通用分割线
public class CommonDividerItemDecoration extends RecyclerView.ItemDecoration { public final static int HORIZONTAL = LinearLayoutManager.HORIZONTAL; public final static int VERTICAL = LinearLayoutManager.VERTICAL; public final static float .原创 2020-08-10 11:39:06 · 1125 阅读 · 1 评论 -
VelocityTracker 注释
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Y...原创 2019-07-31 18:25:51 · 343 阅读 · 0 评论 -
PointerLocationView 源码分析
package com.android.settings.macy11;/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file excep...原创 2019-07-29 15:16:09 · 1430 阅读 · 3 评论 -
基于Android 8.1 的静默安装卸载
这个转自 : https://blog.csdn.net/u013270171/article/details/893208241.静默安装-------系统签名/** * void installPackageAsUser(in String originPath, * in IPackageInstallObserver2 observer, * int flags, * in...转载 2019-06-20 17:57:12 · 2080 阅读 · 3 评论 -
android 文本转语音
参考: https://blog.csdn.net/shendan00/article/details/43525437#commentBoxhttps://www.jianshu.com/p/0cf01f089660https://developer.android.google.cn/reerence/android/speech/tts/TextToSpeech pu...原创 2019-02-18 15:28:36 · 1037 阅读 · 0 评论 -
android 唤醒和解锁屏幕
/** * 唤醒手机屏幕并解锁 */ public void wakeUpAndUnlock() { // 获取电源管理器对象 PowerManager pm = (PowerManager) getApplicationContext() .getSystemService(Context.POWER_...转载 2019-01-30 14:08:36 · 10615 阅读 · 2 评论 -
AIDL Demo
代码:https://github.com/macy7/AIDLDemo學習資料(本demo跟着几位前辈的博客学习写出):https://blog.csdn.net/u011240877/article/details/72765136https://blog.csdn.net/qian520ao/article/details/78072250https://blog.csdn....原创 2019-01-11 17:47:16 · 303 阅读 · 0 评论 -
Android UTC和Local 时间互转
public static String getUTCFromLocalTime_(int hour, int minute, int second) { StringBuffer UTCTimeBuffer = new StringBuffer(); DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:...转载 2018-10-24 19:09:56 · 2980 阅读 · 0 评论 -
Android 如何修改MenuItem 文字的大小写
可以参考:https://stackoverflow.com/questions/17044790/android-actionbar-menuitem-lowercase修改主题那种方式,我没有成功。我用的这个:转载 2018-10-25 15:30:10 · 2274 阅读 · 0 评论 -
关于调用listFile()在遍历含有乱码文件时出现input is not valid Modified UTF-8错误的解决方法
解决方法则为在AndroidMainifest.xml中的application中加入Android:debuggable="false"。参考 http://bbs.csdn.net/topics/392070536转载 2017-08-10 16:34:56 · 1270 阅读 · 0 评论 -
Android 软件盘的打开和关闭
Android 软件盘的打开与关闭方法整理原创 2017-06-21 22:29:16 · 266 阅读 · 0 评论