自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 收藏
  • 关注

原创 Android 解决引入的三方库中类名冲突问题

注意与下述混淆规则文件convert.txt中的-injars path中指定的path一致即可。将新生成的classes-out.jar替换tempFolder中的classes.jar。

2024-02-29 17:39:36 413

原创 Flutter 自定义步骤指示

class StepHeaderView extends StatelessWidget { final int count; // total step final double step; // current step final double normalSize = 28; final double selectedSize = 38; const StepHeaderView({ Key key, this.count, this.step...

2021-06-30 16:17:24 481

原创 代理模式学习

代理模式学习代理模式分为静态代理和动态代理:一:静态代理1.抽象主题类public interface PersonInterface { void saveMoney(); void getMoney(); void doWork();}2.委托类public class Person implements PersonInterface{ @Override public void saveMoney() { L

2020-12-17 17:42:42 168

原创 适配器模式

适配器模式(自己学习总结)一. 类适配器模式1.通用的目标接口public interface Target { void request();}2.通用的业务需求类:public class CommonTarget implements Target{ @Override public void request() { Logger.d("test---> " + "Common Request"); }}3.特殊业务

2020-12-16 11:34:26 169 1

原创 观察者模式

观察者模式 (学习记录)一: 创建一个被观察者import java.util.Observable;public class MyObservable extends Observable { private String name; private int age; public String getName() { return name; } public void setName(String name) {

2020-12-12 16:53:43 112

原创 高德地图开启混淆后不显示定位蓝点的解决方案

参考链接https://www.it610.com/article/1289903447381975040.htm我直接在混淆文件里加了-dontoptimize这个属性就好了

2020-09-09 08:25:30 638

原创 CheckBox不可点击

android:clickable="false"android:focusable="false"android:focusableInTouchMode="false"

2020-08-28 18:20:40 1264

原创 EditText 设置不可编辑

设置android:focusable="false"即可

2020-08-13 16:58:45 191

原创 git 分支合并

2020-08-12 18:12:22 98

原创 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 2169

原创 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 1119 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 331

原创 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 1383 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 2055 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 1028

转载 android 唤醒和解锁屏幕

/** * 唤醒手机屏幕并解锁 */ public void wakeUpAndUnlock() { // 获取电源管理器对象 PowerManager pm = (PowerManager) getApplicationContext() .getSystemService(Context.POWER_...

2019-01-30 14:08:36 10525 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 298

转载 Android 如何修改MenuItem 文字的大小写

可以参考:https://stackoverflow.com/questions/17044790/android-actionbar-menuitem-lowercase修改主题那种方式,我没有成功。我用的这个:

2018-10-25 15:30:10 2259

转载 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 2935

转载 使用android.support.desigin 库时遇到的问题 You need to use a Theme.AppCompat theme (or descendant) with the d

原文地址:https://stackoverflow.com/questions/36924481/you-need-to-use-a-theme-appcompat-theme-or-descendant-with-the-design-library   

2018-09-20 11:05:30 479

原创 git 提交代码 ERROR: [eaabb6d] missing Change-Id in commit message footer

git 提交代码问题

2018-01-03 16:56:18 430

转载 关于调用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 1256

原创 Android 软件盘的打开和关闭

Android 软件盘的打开与关闭方法整理

2017-06-21 22:29:16 261

空空如也

空空如也

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

TA关注的人

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