首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
Android小知识
Afra55
创建于2024-11-16
订阅专栏
收集日常工作中遇到的安卓小知识
暂无订阅
共105篇文章
创建于2024-11-16
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
Android-Universal-Image-Loader详解
原地址:https://github.dodola/Android-Universal-Image-Loader Git下载地址 https://github.<groupId>com.nostra13.<version>1.9.compile 'com.nostra13.uni...
Android-使用DataStore存储数据
1 添加依赖 2 在 main 文件夹下创建 .proto 文件 3 编写 Serializer 4 编写基础存储工具类 5 举例使用 ** 5.1 创建 DataStore 存储工具子类 ** 5.
把android assets文件夹内的文件存储到sd卡中
原文:http://mobile.51cto.com/aprogram-387591.String str[] = ctxDealFile.getAssets().if (str.File file = new File(ctxDealFile.getFilesDir().if ...
Android 解析XML数据
原文:http://developer.android.com/training/basics/network-ops/xml.一个网页StackOverflow.<?xml version="1.<feed xmlns="http://www.w3.org/2005/Atom"...
自定义加载框(2)
上篇地址:http://blog.csdn.net/yang786654260/article/details/44803273; 本篇是使用自定义样式,相当代码量少一些。<style name="dialog" parent="@android:style/Theme.<ite...
Android studio使用GitHub托管代码
之后会设置一个master密码,创建一个自己的密码。一定要先更新再提交,国际惯例。
滴滴插件化框架-VirtualAPK-接入踩坑实践
2019.9.30 VirtualAPK 接入指南 一 预注意事项 1. gradle-wrapper.properties 2. 根 build.gradle 配置 3. 注意混淆 4. 依赖库 二
Google Gson官方教程
https://sites.google.Gson是一个Java库,可用于将Java对象转换为JSON表示。它也可以被用来将JSON字符串转换成一个等效的Java对象。Gson是一个开源项目托管在http://code.google.com/p/google-gson,Gson可...
封装 RecyclerAdapter
超多的地方用到了 RecyclerView,要是每次都 new 一个 RecyclerAdapter, 就显得很麻烦。 so, 封装 Adapter ,让每次使用的时候,只要完成相关布局即可。所有 Bean 文件都要继承 BaseBean,viewType 的意义是该 bean ...
dp, sp, 与 px 互相转换的工具类
import android.content.import android.util.* Created by yangshuai in the 15:40 of 2015.11.26 .final float scale = context.getResources().get...
ShareSdk的一个分享工具类
<?xml version="1.<LinearLayout xmlns:android="http://schemas.android.import android.animation.import android.app.import android.content.impo...
Android图片的选取和拍照
Intent cameraIntent = new Intent(MediaStore.cameraIntent.putExtra(MediaStore...getExternalStorageDirectory(), "temp.jpg")));//保存照片为sd卡根目录下的t...
使用EditText进行关键字查询
if(actionId ==EditorInfo.IME_ACTION_SEARCH || actionId ==EditorInfo.((InputMethodManager) etSearch.getContext().getSystemService(Context..hi...
WebView基本演绎法(1)
博客地址:http://blog.csdn.net/yang786654260 英文API:http://developer.android.com/reference/android/webkit/WebView.<uses-permission android:name="a...
WebView基本演绎法(2)
web.getSettings().web.getSettings().web.getSettings().web.setScrollBarStyle(View.web.getSettings().setCacheMode(WebSettings.web.web.result.w...
FastJson 解析错误问题查找
com.alibaba.fastjson.JSONException: syntax error, expect {, actual pos xxx, ...new Gson().com.google.gson.JsonSyntaxException: java.lang.Num...
使用Activity类中的公共方法在UI线程中进行耗时操作
查看Activity.* Runs the specified action on the UI thread. * thread, then the action is executed immediately. * not the UI thread, the action ...
Android 悬浮窗的贴边移动及属性动画
如上图所示,有自动贴边功能,显示和隐藏动画,移动动画。 使用的都是属性动画。本文不会提供资源文件和demo。 只有代码及注释。 轮子已经制作,转动需要助力。以后的 blog 都会在 github 上。CSDN 只是个入口。 http://afra55.github.
Android Studio 一见钟情(1)
官方网站:http://developer.android.com/tools/studio/index.下载Android Studio:http://developer.android.com/sdk/index.如下图设置sdk,国内镜像服务器下载速度我认为最快的: 地址:...
下一页