自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 android 常用依赖

// image-loaderimplementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' // 导航implementation 'com.android.support:design:26+'// Gsonimplementation 'com.google.code.gson:gson:2.2....

2018-03-12 22:29:41 1208

原创 高德定位

public void initGD() { //声明定位回调监听器 AMapLocationListener mLocationListener = new AMapLocationListener() { @Override public void onLocationChanged(AMapLocation amapLocation) {

2018-03-29 18:43:48 300

原创 友盟第三方分享登录

原文 https://blog.csdn.net/qq_41298052/article/details/78779102// 1,创建MyApplication {        PlatformConfig.setWeixin("wx967daebe835fbeac", "5bb696d9ccd75a38c8a0bfe0675559b3");        Platform

2018-03-26 21:16:37 184

原创 BasePresenter

public abstract class BasePresenter {    protected Reference mViewRef;//View接口类型弱引用    public void attachView(T view) {        mViewRef = new WeakReference(view); //建立关联    }    prot

2018-03-18 18:04:10 270

原创 GreenDao简单使用

// 写一个bean类 添加get/set方法 属性加入注解 然后build--->make project@Entitypublic class Person { @Id(autoincrement = true)//可以设置主键自增 private Long id; @NotNull//可以设置不为空 private String name; pri

2018-03-12 23:10:59 186

原创 EventBus简单使用

public class MainActivity extends AppCompatActivity { private TextView text_view; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState

2018-03-12 23:03:59 142

原创 fresco简单使用

// 导入fresco依赖public class MyApp extends Application {    @Override    public void onCreate() {        super.onCreate();        //初始化        Fresco.initialize(this);    }}/** * 1.占位

2018-03-12 22:56:53 145

原创 Retrofit简单使用

//添加retrofit依赖    compile 'com.squareup.retrofit2:retrofit:2.3.0'    //添加gson转换器的依赖    compile 'com.squareup.retrofit2:converter-gson:2.3.0'  配置服务接口public interface ApiService {

2018-03-12 22:54:14 156

原创 Http响应码

HTTP 400-请求无效HTTP401.1-未授权:登录失败HTTP401.2-未授权:服务器配置问题导致登录失败HTTP401.3-ACL 禁止访问资源HTTP401.4-未授权:授权被筛选器拒绝HTTP401.5-未授权:ISAPI 或 CGI 授权失败HTTP 403-禁止访问HTTP 403-对 Internet 服务管理器 的访问仅限于 LocalhostHTTP403...

2018-03-12 22:46:14 162

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除