![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
三水同志
这个作者很懒,什么都没留下…
展开
-
创建Android Studio项目时默认使用Project视图
1. 在Help菜单中,单击Edit Custom Properties… 2. 如果提示idea.properties不存在的问题,点create创建。 3. 此时会自动打开idea.properties。在其中加入一行: studio.projectview=true 4. 重启Android Studio。 ...原创 2020-03-30 14:02:36 · 836 阅读 · 0 评论 -
解决瀑布流过度复用Item导致条目闪烁,跳动,换位问题
方法一、 // 瀑布流布局管理器 StaggeredGridLayoutManager staggeredGridLayoutManager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL); // 设置item的间距处理方式 staggeredGridLayoutManager.setGapStra...原创 2019-12-16 20:56:08 · 1569 阅读 · 0 评论 -
Android选取相册图片获取的Uri转为真实路径
一、使用Intent调用相册选取图片 // 定义全局常量方便使用 final int PICK_IMAGE = 123; // 创建intent并设置ACTION Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); intent.setDataAndType(M...原创 2019-12-12 11:26:14 · 750 阅读 · 0 评论 -
Android使用Retrofit上传单个文件以及多个文件
*封装RetrofitManager public class RetrofitManager { private static RetrofitManager retrofitManager; private Retrofit retrofit; private RetrofitManager() {} // 使用单例模式封装 public static R...原创 2019-12-11 11:52:44 · 2346 阅读 · 0 评论 -
Android圆形图片–自定义控件
效果图 代码如下: RoundImageView.java package 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 · 123 阅读 · 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 · 99 阅读 · 0 评论