public static final int downloadDone = 1; // 用户model数组 ArrayList<Loginer> loginers = new ArrayList<>(); // hander Handler downloadLoginerHandler = new Handler(){ @Override public void handleMessage(Message msg) { switch (msg.what){ case downlo…
//此实在Fragment中实现的,黄色部分为自动加载,红色部分是需要注意的和手动加载, 蓝色部分是睡眠时间,自我感觉不用写 ,还有就是手动加载时,不知道为什么进去后显示的就是最后一行,求大神指教 public class Fragment1 extends Fragment{ //加载的第几页 private int index = 0; private List<News> news=new ArrayList<…
获取网络数据 let data = []; new Promise(function(resolve,reject){ axios.post('api.php').then(function(response){ resolve(response); },function(error){ reject({data:[]}); }); }).then(function(resolve){ console.log('数据来了'); console.log(resolve.data); data =…
获取网络类型 public class IntenetUtil { //没有网络连接 public static final int NETWORN_NONE = 0; //wifi连接 public static final int NETWORN_WIFI = 1; public static final int UnCon_WIFI = 7; //手机网络数据连接类型 public static final int NETWORN_2G = 2; public static final i…
public static final String NETWORK_CLASS_UNKNOWN = "unknown"; public static final String NETWORK_CLASS_WIFI = "wifi"; public static final String NETWORK_CLASS_2_G = "2g"; public static final String NETWORK_CLASS_3_G = "3…