android
LINGZ_123
666666
展开
-
android序列化
百度百科1.概念(1)序列化概念:将数据结构或对象转换成二进制串的过程。(2)反序列化概念:将在序列化生成的二进制串转换成数据结构或对象的过程。(3)持久化概念:把数据结构或对象存储起来(文件,硬盘等)。2.实现代码public class Demo { public static void main(String[] args) throws Exception { //Serializable String fil...原创 2022-03-21 16:02:53 · 416 阅读 · 0 评论 -
android SwitchCompat开关控件使用
属性 作用showText:true/false 决定是否显示开关按钮上的文字splitTrack: true/false 开关的样式switchMinWidth 开关的最小宽度switchPadding 文字和开关的最小距离switchTextAppearance 开关文字样式thumbTextPadding 文字距两侧的距离thumbTint 开关上按钮的颜色thumbTintMode 按钮样式track 轨道,类似音乐进度条可滑动trackTint 轨道颜色trackTintMo原创 2021-01-26 16:44:41 · 2605 阅读 · 1 评论 -
android开发--融云音视频问题
1.融云音视频自动导入可能调不起来电界面解决方法:推荐使用手动导入,打开CallKit找到RongCallModule类,在onCreate()方法第一行增加代码mViewLoaded = true2.官网下载的sdk中导入CallKit提示api project(':calllib’)找不到解决方法: api project(':calllib’)名称写错,修改为: api project(':CallLib’)3.使用含ui初始化时,继承BaseCallActivity报错:Cau.原创 2020-11-11 16:28:35 · 878 阅读 · 0 评论 -
android AlertDialog多选框设置禁止选择
设置哪个选中:alertDialog.getListView().setItemChecked(i,true);禁止哪个可选(背景变灰色):alertDialog.getListView().getChildAt(i).setEnabled(true); alertDialog = new AlertDialog.Builder(this) .setTitle("选择轮播视频") .setI原创 2020-10-19 10:27:13 · 646 阅读 · 0 评论 -
Android:创建文件提示 Permission denied!
链接:https://blog.csdn.net/u011343735/article/details/83542337?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2转载 2020-10-16 14:04:04 · 632 阅读 · 0 评论 -
android自带videoView播放视频
实现功能:播放上下视频,暂停,停止,重新播放,列表循环播放用到的权限:<uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><uses-permission android:name="android.permission.READ_EX原创 2020-10-03 11:34:56 · 458 阅读 · 0 评论 -
androistudio中wifi调试android应用
https://www.cnblogs.com/guanxinjing/p/11403959.html原创 2020-09-02 10:21:31 · 117 阅读 · 0 评论 -
android 控件跟随手指移动,类似捕鱼达人效果
public class TestActivity extends AppCompatActivity { private ImageView imageView; private ImageView imageView2; private Context context; //defalut旋转开始角度 private float dfFromDegrees = -90; //旋转结束角度 private float dfToDegr...原创 2020-08-14 17:46:39 · 300 阅读 · 0 评论 -
Lottie开源库实现Android动画效果
Lottie项目地址:https://github.com/airbnb/lottie-androidhttps://lottiefiles.com/JSON动画下载地址https://www.lottiefiles.com/参考文章:https://www.jianshu.com/p/cae606f45c0b原创 2020-08-13 10:45:45 · 185 阅读 · 0 评论 -
获取apk签名信息
cmd终端进入apk所在的文件夹,运行keytool -printcert -jarfile apkName.apk原创 2020-05-08 19:06:11 · 266 阅读 · 0 评论 -
Androidstudio项目忽略的文件
Androidstudio使用SVN需要忽略的文件 Android Studio创建的Android项目一般需要忽略1、.idea文件夹2、.gradle文件夹3、所有的build文件夹4、所有的.iml文件5、local.properties文件。...转载 2019-12-24 16:03:26 · 212 阅读 · 0 评论 -
androidstudio3.4设置快速运行apk
file--settting--Build,Execution,Deployment--Instant Run---勾选原创 2019-11-04 10:29:35 · 779 阅读 · 2 评论 -
Android Monitor被取代
https://developer.android.google.cn/studio/profile/android-profiler原创 2019-10-31 10:32:59 · 548 阅读 · 0 评论 -
java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to
第一种方法不行则使用第二种public static List<?> jsonToList(String jsonStr) { List<?> objList = null; if (gson != null) { Type type = new TypeToken<List<?>>() { }.g...原创 2019-10-29 17:21:23 · 710 阅读 · 0 评论 -
recyclerview添加分割线
recyclerView.setLayoutManager(new LinearLayoutManager(this));recyclerView.addItemDecoration(new HorizontalDividerItemDecoration.Builder(this) .color(getResources().getColor(R.color.divide_li...原创 2019-10-29 16:07:45 · 227 阅读 · 0 评论 -
高德地图自定义绘制点标记
private void setCompanyLocation() { LatLng latLng = new LatLng(21.2283990000, 110.4032290000); MarkerOptions markerOption = new MarkerOptions();// markerOption.position(Cons...原创 2019-10-25 15:11:15 · 2481 阅读 · 0 评论 -
百度地图或高德地图自定义定位图标
ImageView imageView = new ImageView(context);imageView.setBackground(context.getResources().getDrawable(R.drawable.bb));BitmapDescriptor descriptor1 = BitmapDescriptorFactory.fromView(imageView);...原创 2019-10-25 11:36:17 · 884 阅读 · 0 评论 -
解决recyclerview padding无效
android:clipToPadding="false"原创 2019-10-21 17:15:25 · 1349 阅读 · 0 评论 -
开源框架
欢迎页:AppIntro https://github.com/apl-devs/AppIntro https://www.jianshu.com/p/22de563dd3f5画布 :bannerhttps://github.com/youth5201314/banner运行时权限:SoulPermission https://github....原创 2019-10-13 19:07:06 · 290 阅读 · 0 评论 -
androidstudio 添加module
1.选择import module2.选择路径3.右击项目名选择如下:在project.gridle添加如下代码(方便版本管理): ext { // Sdk and tools minSdkVersion = 15 targetSdkVersion = 29 compileSdkVers...原创 2019-10-08 16:02:14 · 385 阅读 · 0 评论 -
android反编译
1.要准备的三个工具1.apktool:获取资源文件,提取图片文件,布局文件,还有一些XML的资源文件 apktool下载链接:https://ibotpeaches.github.io/Apktool/ 把下载好的apktool_2.4.0.jar和要反编译的apk放在同个文件夹,通过cmd进入文件夹路径或者打开文件夹,按住shift+鼠标右 键进入当前...原创 2019-07-03 23:43:44 · 125 阅读 · 0 评论 -
百度地图获取发布版SHA1
1. 运行进入控制台Windows:运行 -> 输入cmd -> 确定。2. 在控制台内,输入:cd .android3.输入:keytool -list -v -keystore debug.keystore 密码:原始密码一般为android...原创 2019-07-08 21:00:32 · 179 阅读 · 0 评论