自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(245)
  • 资源 (3)
  • 收藏
  • 关注

原创 GitHub上项目的收集

1、在Canvas 中玩转SVG Path地址:https://github.com/JorgeCastilloPrz/AndroidFillableLoaders效果图:2、Android-MaterialRefreshLayouthttps://github.com/android-cjj/Android-MaterialRefreshLayout3、albaba的fa...

2017-09-14 11:24:52 4527 2

原创 jenkins shell脚本问题

mac电脑配置了jenkins,同样的脚本,mac 电脑终端执行没有问题,复制到jenkins时,jenkins shell命令识别不了 -n指令。jenkins 系统配置中,找到shell 模块,配置上本地的路径即可。在终台输入which bash,回车即可得到。

2023-06-21 16:29:49 387

原创 Mac MySql忘记密码重置密码流程

会看到MySQL会自动重启,重启之后执行后面步骤。设置密码为123456。在mysql命令状态输入。3.另外开一个终端,设置MySQL密码。进入到mysql命令状态下,执行命令。进入mysql的bin目录下。2.跳过密码进入MySql。

2023-04-16 13:27:18 343

原创 mac nvm 安装

报错信息:-bash: nvm: command not found。3.安装完成后,您需要重新打开终端窗口或运行以下命令。打开终端或命令行界面。

2023-03-27 22:13:56 141

原创 react-native报错:react-native: n/a - not inside a React Native project directory

这个错误通常表示您尚未在当前目录或其任何父目录中找到 React Native 项目。执行这个命令即可:yarn install。

2023-03-27 22:06:08 265 1

原创 Android 画布canvas drawText(char[] text, int index, int count, float x, float y, Paint paint)

('H','e','l','l','o',',','w','o','r','l','d'),如果只绘制e到l字符('e','l','l','o',',','w','o','r','l'),如何实现?count:绘制的字符数。从第二个字符开始绘制减1,不绘制最后一个字符再减一。所以是 content.size - 2。index是1,count是content.size - 2。index:字符数组中索引为1的字符开始绘制。

2023-03-11 17:43:13 97

原创 Android画布canvas drawLines(float[] pts, int offset, int count, Paint paint)

如果从第一个点开始,那第一条线的起点是(100f, 100f),终点是(200f, 200f)(100f, 100f, 200f, 200f, 300f, 100f, 400f, 200f,500f,100f,600f,200f),如果是offset = 4,那么就是从300f这个值开始算起点。offset = 0,count = 12,从第0个元素算起点,绘制3条线。

2023-03-10 14:45:46 295

原创 Android canvas drawDoubleRoundRect使用

outerRadii:外部矩形的四个圆角半径。8个值,floatArrayOf(左上,左上,右上,右上,右下,右下,左下,左下)比如:floatArrayOf(50f,50f,10f,10f,10f,10f,0f,0f)paint:画笔,默认是Paint.Style.FILL。innerRadii:内部矩形的四个圆角半径。作用是用指定画笔绘制两个圆角矩形。如果要绘制这样效果图如何实现?outer:外部矩形。inner:内部矩形。

2023-03-09 23:20:08 688

原创 android aar上传gitlab

android grovy maven aar上传gitlab

2022-07-22 18:16:18 1055

原创 Android sdk build-tools没有对应的版本

问题:执行以下命令,没有找到build-tools;30.0.0,platforms;android-30等等的版本。android list sdk --all解决方案:操作环境linux在android-sdk-linux中的tools->bin目录下,看看是否有sdkmanager。如果没有sdkmanager请先下载Command line tools,然后解压,新建目录下新建latest文件夹,把目录下素有的文件移动到latest文件下。最后把整个cmdline-too

2022-02-08 00:08:27 3420

原创 git 配置多个项目ssh存储

操作系统:mac进入.ssh目录,创建名为config文件cd /Users/xxx/.sshxxx改为你的电脑用户名。查看是否有config文件:ls如果没有config文件,则创建config文件,然后打开:touch config有config文件,则直接打开config文件:open config在config文件中输入一下内容并保存:Host github.comHostName github.comPreferredAuthenticat

2022-01-10 23:32:34 646

原创 Installation failed due to: ‘null‘

支持Android 12 的app,运行在12的机器上时,如果有定义了Intent-filter的activity,没有写android:exported,安装的时候可能会出现这个报错Installation failed due to: 'null',导致安装不了app。解决方案:AndroidMenifest.xml在定义了Intent-filter的activity,则需写上android:exported,既可以解决问题。...

2021-12-09 00:36:33 936 1

原创 Installation failed due to: ‘‘cmd package install-create -r -t --user current --full --dont-kill -t

Android中AndroidJUnit4 运行单元测试时报错,错误是:Installation failed due to: ''cmd package install-create -r -t --user current --full --dont-kill -t -g -S 7871513' returns error 'Unknown failure: Security exception: You need the android.permission.INSTALL_GRANT_R.

2021-09-23 15:12:53 5078 1

原创 mac android studio 无法启动该应用程序

不知道啥原因,导致项目运行不起来,报outofmemory,然后手动的改了android studio的memory 。然后悲剧就发生了。无法启动该应用程序。什么?今天的任务还没完成呢。百度了一下,都是说是删掉studio.vmOptions文件即可(ps:这个是正确的)。可惜我一直找不到这个文件,全局也搜不到。那我重装,那应该可以解决问题吧。但不幸的是也不行。解决方法:就是上面说的把删掉studio.vmOptions文件即可。如何找到这个文件呢?应用程序 ->Android S

2021-08-24 20:56:14 1378

原创 Android 画布canvas drawBitmap(Bitmap bitmap, float left, float top, Paint paint)

void drawBitmap(Bitmap bitmap, float left, float top, Paint paint)Draw the specified bitmap, with its top/left corner at (x,y), using the specified paint, transformed by the current matrix.这个方法从...

2019-11-03 19:44:04 780

原创 Android 画布canvas drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint)

void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint)Draw the specified bitmap, scaling/translating automatically to fill the destination rectangle.绘制指定的位图,自动缩放/平移以填充目标矩形。没有返回值。该方法有三个参...

2019-11-02 20:29:41 1086

原创 Android 画布canvas drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint)

void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint)Draw the bitmap using the specified matrix.使用指定的矩阵绘制位图。也就是可以通过matrix的属性来控制如何绘制位图。该方法有三个参数,分别是:Bitmap bitmap:要绘制的位图Matrix matrix:绘制位图...

2019-11-01 21:57:21 1446

原创 Android 画布canvas drawArc方法

void drawArc(RectF oval, float startAngle, float sweepAngle, boolean useCenter, Paint paint)Draw the specified arc, which will be scaled to fit inside the specified oval.也就是在画布上绘制一个指定弧。这个方法有5个参数...

2019-11-01 00:12:35 412

原创 Android 画布canvas drawARGB(int a, int r, int g, int b)

void drawARGB(int a, int r, int g, int b)Fill the entire canvas' bitmap (restricted to the current clip) with the specified ARGB color, using srcover porterduff mode.也就是用ARGB颜色填充画布的意思。这个方法有三个参数,...

2019-10-30 21:33:34 1788

原创 Android 画布canvas concat(Matrix matrix)

void concat(Matrix matrix)Preconcat the current matrix with the specified matrix.可以理解成对matrix的变换应用到canvas上的所有对象。参数Matrix是The Matrix class holds a 3x3 matrix for transforming coordinates.意思。可以理...

2019-10-29 21:40:18 2033

原创 Android 画布canvas clipRect(Rect rect)

clipOutRect(Rectrect)Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.Canvas 中clipOutRect(Rectrect)方法,是对画布按照rect进行裁剪的意思。参数re...

2019-10-28 16:34:06 1080

原创 Android 画布canvas clipOutPath(Path path)

boolean clipOutPath(Path path)Set the clip to the difference of the current clip and the specified path.Canvas 中clipOutPath(Path path)方法,是对画布按照path进行裁剪的意思。参数path是由直线段,二次曲线和三次曲线组成的复合(多轮廓)几何路径。该方法...

2019-10-26 23:21:00 2276

原创 kotlin项目报这种提示Please specify proper '-jvm-target' option

报错信息Cannot inline bytecode buit with JVM target 1.8 into bytecode that is being built with JVM target 1.6.Please specify proper '-jvm-target' option解决方法:在app目录下build.gradle文件里面添加kotlinOptions...

2019-09-22 16:55:25 8208 2

原创 ubuntu系统下使用jenkins自动构建Android项目

一、所需要安装的软件:1、jdk 2、gradle 3、git 4、android sdk 5、tomcat 6、jenkins二、安装软件:jdk:下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html在/usr/local目录下新建java文件夹su...

2019-04-08 10:29:47 893

原创 Android Studio 运行项目报Error:Please select Android SDK

Android Studio 运行项目报Error:Please select Android SDK

2018-04-04 16:49:06 931

原创 Glide同一个url。但资源变了的情况处理

Glide同一个url。但资源变了的情况处理

2017-10-20 10:29:26 1048

转载 svn: E155004 'XX' is already locked

svn: E155004 'XX' is already locked

2017-10-12 15:39:58 559

原创 AppBarLayout的ScrollFlags使用遇到的问题

AppBarLayout的ScrollFlags使用遇到的问题

2017-09-30 09:40:13 2148

原创 Android将Library上传到jcenter超简单完整图文步骤以及遇到的各种坑

第一种接入方式:转载于:http://blog.csdn.net/linglongxin24/article/details/53415932补充bug:按照上面链接,出现这个问题HTTP/1.1 404 Not Found [message:Repo 'maven' was not found] #141解决方法:在https://bintray.com...

2017-09-27 21:46:25 323

原创 Android Studio打包错误Error:Error: Expected resource of type id [ResourceType]

Android Studio打包错误Error:Error: Expected resource of type id [ResourceType]

2017-09-26 10:16:24 287

转载 Android Studio打包APK时出现 is not translated in "en" (English) [MissingTranslation]

is not translated in "en" (English) [MissingTranslation]

2017-09-13 18:13:12 293

原创 Manifest merger failed with multiple

Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple

2017-06-12 17:24:35 291

原创 win10取消自定义快捷键

win10自定义快捷和android studio快捷键冲突

2017-06-06 22:52:30 4068 1

原创 android 数据大小单位转换

android 数据大小单位转换

2017-05-18 15:15:07 909

原创 Jquery往网页插入数据遇到数据出现重复的问题

Jquery往网页插入数据遇到数据出现重复的问题

2017-05-13 20:48:05 707

原创 配置MyBatis的整合遇到的问题

Cannot convert value of type 'java.lang.String' to required type 'org.apache.ibatis.session.Configuration' for property 'configuration': no matching editors or conversion strategy found

2017-05-09 00:07:49 3483 2

转载 Eclipse中配置Tomcat

Eclipse中配置Tomcat

2017-05-07 00:05:28 230

原创 maven 在eclipse中设置以及创建java和web工程

maven 在eclipse中设置以及创建java和web工程

2017-05-06 12:28:21 345

转载 利用 Chrome 开发者工具远程调试 Android 中的原生 WebView

利用 Chrome 开发者工具远程调试 Android 中的原生 WebView

2017-05-05 16:32:08 430

原创 Duplicate files copied in APK META-INF/LICENSE

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE File1: C:\Users\A

2017-04-15 22:54:01 1580

mac需要下载 jdk8资源

mac jdk8 java

2024-01-15

动态注册快捷方式和删除快捷键方式

动态注册快捷方式和删除快捷键方式

2017-04-05

Android 7.1 新特性ShorCut

Android 7.1 ShorCut。Android 7.1以及其以上的设备才能支持这种效果

2017-04-05

Android JNI简单使用

android studio 中jni的简单使用,适合初学jni者参考

2017-04-03

空空如也

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

TA关注的人

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