- 博客(12)
- 收藏
- 关注
原创 横向滑动菜单
MainActivitypackage com.lhy.com.lihaoyu20180521.view;import android.support.annotation.NonNull;import android.support.annotation.Nullable;import android.support.design.widget.TabLayout;import and...
2018-05-31 20:50:35
177
原创 fragment基类
package company.pp.com.ppcommunity.base;import android.os.Bundle;import android.support.annotation.NonNull;import android.support.annotation.Nullable;import android.support.v4.app.Fragment;impor...
2018-05-31 20:02:56
314
原创 网络请求框架
package com.example.administrator.cinemavideo.utils; import com.example.administrator.cinemavideo.api.ApiService;import com.example.administrator.cinemavideo.api.ApiServiceVar;import com.jakewharton.r...
2018-05-31 19:23:06
416
原创 底部菜单
布局<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="h
2018-05-31 19:22:45
186
原创 recycle。mvp。动画。第三方。
欢迎动画页面package com.bwei.com.lianxi.view;import android.animation.Animator;import android.animation.AnimatorListenerAdapter;import android.animation.ObjectAnimator;import android.annotation.SuppressLint...
2018-04-26 19:56:30
132
原创 多条目ListView
//定义三种类型 private final int ONE_IMAGE=0; private final int TWO_IMAGE=1; private final int THREE_IMAGE=2; public MyAdapter(Context context, List data) { this.context = co
2018-01-11 09:46:38
125
原创 ImageLoder
//需要识记的是以下几个参数:File cacheFile=getExternalCacheDir();ImageLoaderConfiguration config=new ImageLoaderConfiguration.Builder(this) .memoryCacheExtraOptions(480, 800)//缓存图片最大的长和宽 .threadP
2018-01-04 10:32:18
131
原创 二级采样
public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R
2018-01-03 14:56:47
539
原创 可能会发生重定向
//使用HttpUrlConnection URL url=new URL(params[0]); HttpURLConnection connection=(HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET");
2018-01-01 19:12:00
246
转载 判断蓝牙和WiFi是否开启
//判断蓝牙状态BluetoothAdapter blueadapter=BluetoothAdapter.getDefaultAdapter();if (blueadapter.isEnabled()){ text_wifi.setText("蓝牙状态:开");}else{ text_wifi.setText("蓝牙状态:关");}//判断wifi状态//得到w
2018-01-01 19:06:28
224
原创 Json解析Handler+异步文字+异步图片
注册页面public class MainActivity extends AppCompatActivity { private EditText num; private EditText pwd; private Button register; private String password; private String mobile;
2017-12-29 10:29:30
187
原创 判断有无网络
public class NetWork { //判断有无网络 public static Boolean isConn(Context context){ //得到系统服务 ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.CON
2017-12-28 09:49:09
167
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人