- 博客(7)
- 收藏
- 关注
原创 Android7.0调取系统权限详解
本尊在此(Android官方解决方法):点击打开链接Android 6.0之后的版本增加了运行时权限,应用程序在执行每个需要系统权限的功能时,需要添加权限请求代码(默认权限禁止),否则应用程序无法响应,测试过程中,发现在android7.0以上的设备上使用摄像头时,直接崩溃掉了。原因是android7.0开始,相机拍照的图像保存路径必须在此应用的内部存储文件夹(storage/mounted/0/...
2018-06-25 08:58:44 1186
原创 BottomBar简单使用
我们在Android开发一个项目时,肯定会使用到这个第三方的。方便、简单、好用。话不多少上代码!BottomBar作为一个开源的第三方控件,因其简单实用,且动画效果酷炫,用来作为android App的底部导航栏; 关于这方面的详解一直都有,此次进行重写是因为,该控件进行了版本升级,由原先的1.0版本升级到了的2.0版,我们今天写一下1.0版本的使用方法:1.首先,我们下面需要几个按钮,咱们就创建...
2018-04-25 14:18:54 1205
原创 RxJava+Retrofit结合使用-网络请求-封装
1.首先导入依赖跟权限: //ButterKnife-依赖: compile 'com.jakewharton:butterknife:8.5.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1' //fresco依赖: compile 'com.facebook.fresco:fresco:...
2018-04-25 14:03:22 339
原创 购物车布局
商品展示子布局RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> CheckBox android:id="@+id
2018-01-18 18:39:46 185
原创 PullToRefreshListView的使用
布局文件: android:id="@+id/lv" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="start" android:choiceMode="si
2018-01-02 16:50:33 166
原创 ListView多条目加ImageLoader的使用-简单易懂
我们在加载数据中,需要用到多条目的情况还是很多的,以下是多条目的代码:适配器代码:import android.content.Context;import android.view.View;import android.view.ViewGroup;import android.widget.BaseAdapter;import android.widget.Ima
2018-01-02 16:41:07 157
原创 Fragment的切换-简单易懂
1.话不多少直接上代码(仅供参考)这是我们的布局文件 xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">
2018-01-02 16:36:05 260
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人