![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
文章平均质量分 72
韩经哲
这个作者很懒,什么都没留下…
展开
-
使用ImageLoader进行本地Disk缓存
自己重新写一个App的类,继承Application,重写onCreate()方法@Overridepublic void onCreate() { super.onCreate(); initImageLoader();}private void initImageLoader() { //指定一个缓存地址 File cacheDir = StorageU...原创 2018-07-01 18:39:32 · 1227 阅读 · 1 评论 -
灵活的轮播图圆点
画出两个 shape 文件 属性为 shape="oval" 圆形在 <solid android:color="#f00" /> 中指定颜色ViewPager控件增加一个 LinearLayout 横向线性布局 用来根据图片的数量进行添加圆点 初始化圆点 private List<ImageView> imageViews = new ArrayList<...原创 2018-07-01 19:13:50 · 782 阅读 · 0 评论 -
Zxing二维码
需要在Manifest添加的权限:<uses-permission android:name="android.permission.CAMERA" /><uses-permission android:name="android.permission.FLASHLIGHT" /><uses-feature android:name="android.hardw...原创 2018-07-11 09:44:04 · 144 阅读 · 0 评论 -
京东0729购物车
布局:需要三个自定义: 1.2为的是解决滑动冲突 3.为自定义的加减框1. ExpandableListView--自定义二级列表public class MyExpandableListView extends ExpandableListView { public MyExpandableListView(Context context, AttributeSet at...原创 2018-07-29 21:13:31 · 191 阅读 · 0 评论 -
简单实现自定义轮播图
public class MyViewPager extends ViewPager { private List<String> images; public void setImages(List<String> images) { this.images = images; } public MyViewPage...原创 2018-07-30 07:52:24 · 830 阅读 · 0 评论 -
Green
项目:buildscript { repositories { google() jcenter() mavenCentral() // add repository } dependencies { classpath 'com.android.tools.build:gradle:3.2.0...原创 2018-08-05 21:28:49 · 564 阅读 · 0 评论