Android
你过来呀~
这个作者很懒,什么都没留下…
展开
-
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 · 301 阅读 · 0 评论 -
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 · 7695 阅读 · 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 · 32738 阅读 · 23 评论 -
Android仿小红书大众点评登录页背景动态效果
SrcScrollFrameLayout我转载Ziwen Lan的只用于个人记录Introduction :仿小红书登陆页面背景图无限滚动 FrameLayout功能特点:1.将选择的图片按比例缩放填满当前 View 高度2.背景图片缩放后宽/高度小于当前 View 宽/高度时自动复制黏贴直到占满当前 View 宽/高度,以此来达到无限滚动效果3.可通过自定义属性 speed 调整滚动速度,提供 slow、ordinary 和 fast 选项,也可自行填入 int 值,值越大滚动速度越快,建议原创 2020-12-01 17:46:15 · 1036 阅读 · 0 评论 -
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 · 937 阅读 · 0 评论 -
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 · 345 阅读 · 0 评论 -
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 · 1058 阅读 · 0 评论 -
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 · 417 阅读 · 0 评论 -
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 · 547 阅读 · 0 评论 -
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 · 436 阅读 · 0 评论 -
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 · 854 阅读 · 0 评论 -
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 · 1900 阅读 · 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 · 2712 阅读 · 0 评论 -
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"> <原创 2020-07-24 17:38:52 · 367 阅读 · 0 评论