自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 鸿蒙HDC的坑,hdc list targets,

在开启手机端口时hdc怎么都连不上,hdc list targets查到的都是Empty。一、 \sdk\openharmony\9\toolchains。二、 \sdk\hmscore\3.1.0\toolchains。:若有多台,一次仅能连接一台,每次连接时需要指定连接设备的标识。最后发现SDK有两种Hmscore和OpenHarmony。连接设备时,若仅有一台,无需指定设备标识。我在使用了第二种,找到了设备信息。但是在编译器中还是可以查到的。

2024-04-17 10:30:48 482

原创 Unsupported class file major version 59和unrecognized Attribute name MODULE

报第一个问题的时候搜索了一下都是在build.properties中添加这个。因为我的jdk环境为1.8。环境jdk从1.8改为11。

2023-05-09 19:26:25 946

原创 DTEND and DURATION cannot both be null for an event.设置日历日程重复的坑

值:HOURLY:小时、DAILY:天、WEEKLY:周、MONTHLY:月、YEARLY:年INTERVAL :重复间隔数值:必须为正整数,默认值为1,表示每小时、每天比如每天重复:FREQ=DAILY;INTERVAL=1;WKST=SUWKST=SU ,表示从周几开始,

2023-05-09 10:58:59 239

原创 The minCompileSdk (33) specified in a dependency‘s AAR metadata (META-INF/com/android/build/gradle/a

The minCompileSdk (33) specified in adependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)is greater than this module's compileSdkVersion (android-32).Dependency: androidx.core:core:1.9.0-beta01.AAR metadata file: C:\Use

2022-08-24 17:22:21 7407 2

原创 Android记录我遇到的坑The minCompileSdk (31) specified in a dependency‘s AAR metadata (META-INF/co

记录我遇到的坑,周一打开项目莫名其妙跑不起来了。一直提示The minCompileSdk (31) specified in adependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)is greater than this module's compileSdkVersion (android-30).

2021-12-28 10:39:06 32163 23

原创 Android仿小红书大众点评登录页背景动态效果

SrcScrollFrameLayout我转载Ziwen Lan的只用于个人记录Introduction :仿小红书登陆页面背景图无限滚动 FrameLayout功能特点:1.将选择的图片按比例缩放填满当前 View 高度2.背景图片缩放后宽/高度小于当前 View 宽/高度时自动复制黏贴直到占满当前 View 宽/高度,以此来达到无限滚动效果3.可通过自定义属性 speed 调整滚动速度,提供 slow、ordinary 和 fast 选项,也可自行填入 int 值,值越大滚动速度越快,建议

2020-12-01 17:46:15 1002

原创 Android 隐藏手机号中间4位

效果代码实现 private fun phoneHide(phone: String): String { val sb = StringBuilder() if (!TextUtils.isEmpty(phone) && phone.length > 6) { for (i in phone.indices) { val c = phone[i] if (i

2020-08-15 14:36:19 894

转载 Android 点击按钮倒计时(获取验证码)

只用于自己笔记,不做任何赚取收益,本文转自:解决倒计时导致的内存泄漏public class CountDownTimerUtils extends CountDownTimer { private WeakReference<TextView> mTextView; /** * @param millisInFuture The number of millis in the future from the call * to

2020-08-15 14:29:24 708

原创 Android 自定义View画板(签名)

自定义View import android.annotation.SuppressLint;import android.content.Context;import android.graphics.Bitmap;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.graphics.Path;import android.gra

2020-08-06 16:06:55 324

原创 Android 原生分享图片

var share_intent = Intent() share_intent.action = Intent.ACTION_SEND//设置分享行为 share_intent.type = "image/*" //设置分享内容的类型 share_intent.putExtra(Intent.EXTRA_STREAM, uri) //创建分享的Dialog share_intent.putExtra(Intent.EXTRA_SUBJECT, "分享");//添加分享内容标题 sha.

2020-08-06 15:49:51 1038

原创 Android View转换为Bitmap图片

/** * View转换为Bitmap图片 * * @param view * @return Bitmap */// @SuppressLint("NewApi") @RequiresApi(Build.VERSION_CODES.O) private fun convertViewToBitmap(view :View) :Bitmap { //创建Bitmap,最后一个参数代表图片的质量. v.

2020-08-06 15:44:31 394

原创 Android 超级简单快速生成二维码(zxing带logo)

zxing依赖//二维码库 api 'cn.yipianfengye.android:zxing-library:2.2'val createImage = CodeUtils.createImage(version.shareUrl, 600, 600, BitmapFactory.decodeResource(resources, R.drawable.share_logo))

2020-08-06 15:37:21 533

原创 Android ScrollView实现悬浮窗滚动渐变

首先自定义ScrollViewMyScrollViewimport android.content.Context;import android.util.AttributeSet;import android.widget.ScrollView;/** * @Author:Administrator * @E-mail: victory52@163.com * @Date:2020/8/6 9:43 * @Description:描述信息 */public class ...

2020-08-06 15:29:25 424

原创 Android 仿淘宝商品页详情(头部滑动渐变)

上布局 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:background="#23F1F1F

2020-07-28 11:19:42 840

原创 Kotlin 水平滚动RecyclerView,增加滚动条指示器(仿拼多多首页分类模块)

话不多说先上代码,首先是xml页面,RecyclerView布局下面是小滚动条的布局activity_main.xml <androidx.recyclerview.widget.RecyclerView android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="wrap_content"/> <Frame..

2020-07-28 10:43:12 1884 3

原创 Android 偏好选择(RecyclerView横向展示超出屏幕换行)

偏好选择效果选中效果就不写了build.gradle中导入依赖api 'com.google.android:flexbox:1.0.0'页面 <androidx.recyclerview.widget.RecyclerView android:id="@+id/recyclerview" android:layout_below="@+id/title" android:layout_width="match_parent"

2020-07-24 17:53:27 2643

原创 Android ScrollView和RecyclerView滑动冲突

布局中 <ScrollView android:layout_width="match_parent" android:layout_height="match_parent"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> &lt

2020-07-24 17:38:52 336

原创 AsyncTask执行流程及异步请求

1.HttpClient与HttpURLConnection的区别答:HttpClient相比传统JDK自带的URLConnection,增加了易用性和灵活性,它不仅使客户端发送HTTP请求变得容易,而且也方便了开发人员测试接口(基于Http协议的),即提高了开发的效率,也方便提高代码的健壮性。2.AsyncTask的优缺点优点:1.方便实现异步通信,不需使用“任务线程(如继承Thread...

2019-02-16 11:45:19 322

原创 ANR以及网络判断

1.ANR以及网络判断1.ANR的概念:ANR的全称为Application Not Response,翻译过来就是应用程序无响应,产生ANR的主要原因是在Android4.0以后,所有的耗时操作不能在主线程进行,在主线程中做了耗时操作所以才会anr;2.如何避免ANR异常从Android4.0以后所有的耗时操作都需要放到子线程中进行3.AsyncTask的基本使用 class MyA...

2019-02-16 11:34:54 201

空空如也

空空如也

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

TA关注的人

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