原创 封裝post和get方法

日誌攔截器依賴 implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0' package com.example.mydayokhttp; import

原创 LinearLayoutManager

佈局文件 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android

原创 購物車RecycleView

private List<SpusBean> spus; private boolean isChecked; private List<?> status_remind_list;

原创 表格

adapter package com.example.lineardemorecyclerview.adapter; import android.support.annotation.NonNull; import androi

原创 多佈局

adapter package com.example.myduobuju.adapter; import android.support.annotation.NonNull; import android.support.v7.

原创 XRecyclerView

需要導入依賴 configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details ->

原创 第三方登錄

package com.example.erzhoukaomoni; import android.content.Intent; import android.content.SharedPreferences; import an

原创 第三方佈局

<?xml version="1.0" encoding="utf-8"?> <LinearLayout android:layout_width="match_parent" android:layo

原创 MVP

Activty package com.example.daymodule1206; import android.os.Bundle; import android.support.v7.app.AppCompatActivity

原创 二維碼

權限 <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permissi

原创 轉盤

佈局文件 <?xml version="1.0" encoding="utf-8"?> <com.example.activity.myapplication.weight.MyLuckView android:layout

原创 流式佈局

attrs佈局 <?xml version="1.0" encoding="utf-8"?> 樣式styl <?xml version="1.0" encoding="utf-8"?>

原创 流式佈局文件

引用代碼 package com.example.zhoukaoyi.weight; import android.content.Context; import android.util.AttributeSet; import a

原创 數據庫調用

package com.example.likai2018119zk3.fragment; import android.os.AsyncTask; import android.os.Bundle; import android.s

原创 側滑

佈局文件 <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android=“http://schemas.and