
Android
三水同志
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
创建Android Studio项目时默认使用Project视图
1. 在Help菜单中,单击Edit Custom Properties…2. 如果提示idea.properties不存在的问题,点create创建。3. 此时会自动打开idea.properties。在其中加入一行:studio.projectview=true4. 重启Android Studio。...原创 2020-03-30 14:02:36 · 958 阅读 · 0 评论 -
解决瀑布流过度复用Item导致条目闪烁,跳动,换位问题
方法一、// 瀑布流布局管理器StaggeredGridLayoutManager staggeredGridLayoutManager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL);// 设置item的间距处理方式staggeredGridLayoutManager.setGapStra...原创 2019-12-16 20:56:08 · 1878 阅读 · 0 评论 -
Android选取相册图片获取的Uri转为真实路径
一、使用Intent调用相册选取图片// 定义全局常量方便使用final int PICK_IMAGE = 123;// 创建intent并设置ACTIONIntent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);intent.setDataAndType(M...原创 2019-12-12 11:26:14 · 851 阅读 · 0 评论 -
Android使用Retrofit上传单个文件以及多个文件
*封装RetrofitManagerpublic class RetrofitManager { private static RetrofitManager retrofitManager; private Retrofit retrofit; private RetrofitManager() {} // 使用单例模式封装 public static R...原创 2019-12-11 11:52:44 · 2538 阅读 · 0 评论 -
Android圆形图片–自定义控件
效果图代码如下:RoundImageView.javapackage com.dxd.roundimageview;import android.content.Context;import android.content.res.TypedArray;import android.graphics.Bitmap;import android.graphics.Bitmap.Con...原创 2019-12-07 09:35:34 · 182 阅读 · 0 评论 -
Sliding Menu添加侧滑剩余部分阴影
一、效果图二、修改方法在SlidingMenu添加一个设置透明度方法public void setOffsetFadeDegree(float f) { mViewBehind.setOffsetFadeDegree(f);}CustomViewBehind 添加变量和方法private float mOffsetFadeDegree; public void set...原创 2019-12-06 21:05:18 · 154 阅读 · 0 评论