- 博客(15)
- 问答 (1)
- 收藏
- 关注
原创 静态内部类实现单例
静态内部类实现单例调用 TestUtil.getInstance().logTest();public class TestUtil { private TestUtil(){ } private static class TestUtilHolder{ private static TestUtil testUtilInstance = new TestUtil(); } public static TestUtil getInstance(){
2022-04-29 17:04:55
132
原创 hellocharts-Android图标库
各个属性介绍地址:http://www.jianshu.com/p/7e8de03dad79Android studio hellocharts 接入repositories { maven { url "https://jitpack.io" } } dependencies { implementation 'com.github.lecho:hellocharts-android:v1.5.8' }Col
2020-12-09 09:42:55
362
原创 Android 帧动画使用
在drawable文件夹下创建voice_left_paly_animation.xml<?xml version="1.0" encoding="utf-8"?><animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false"> <item android:drawable="@drawable/voice_left_play
2020-08-26 15:18:02
153
原创 TabLayout相关设置(TabLayout属性,自定义itemTab,设置垂直分割线)
tabLayout属性<com.google.android.material.tabs.TabLayout android:id="@+id/tb_video_message_type" android:layout_width="match_parent" android:layout_height="50dp" app:tabTextColor="@color/black3d3d3d" app:tabSelecte
2020-08-21 11:54:32
1409
转载 微信分享出错问题,MicroMsg.SDK.WXMediaMessage: checkArgs fail, thumbData is invalid
微信分享出错问题,MicroMsg.SDK.WXMediaMessage: checkArgs fail, thumbData is invalid今天做了个微信分享,发现有的手机能分享成功,有的却不行。查了好久才知道,原来分享图片大小不能大于32kb。把图片改小与32KB就行了。特此记录一下。/MicroMsg.SDK.WXMediaMessage: checkArgs fail, thum...
2019-08-15 13:34:12
844
转载 安卓9.0版本不能访问http请求
安卓9.0以上系统不能成功请求http,(默认https).修改配置如下:1.在res/xml目录下新建xml文件文件名为network_security_config.xml <?xml version="1.0" encoding="utf-8"?> <network-security-config> <base-config cleartex...
2019-06-01 15:01:35
1978
原创 glide设置圆形图片与圆角图片
implementation ‘com.github.bumptech.glide:glide:4.9.0’一、设置圆形图片Glide.with(this).load(url).apply(RequestOptions.bitmapTransform(new CircleCrop())).into(imageView); 或者RequestOptions requestOptions =...
2019-05-23 10:08:48
3917
原创 Android 控件设置
1、edittext设置可编辑与不可编辑状态设置不可编辑状态: editText.setFocusable(false); editText.setFocusableInTouchMode(false);设置可编辑状态:editText.setFocusableInTouchMode(true);editText.setFocusable(true);editText.reques...
2019-05-23 09:18:23
133
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人