2016年7月1日

Fragment事物

摘要: if (fragments.size() > 0) { for (int i = 0; i < fragments.size(); i++) { FragmentTransaction transaction = supportFragmentManager.beginTransaction(); 阅读全文

posted @ 2016-07-01 08:35 白日梦游 阅读(189) 评论(0) 推荐(0) 编辑

简单的日间模式夜间模式

摘要: package com.example.topnews.topnews; import android.content.SharedPreferences;import android.content.SharedPreferences.Editor;import android.graphics. 阅读全文

posted @ 2016-07-01 08:07 白日梦游 阅读(924) 评论(0) 推荐(0) 编辑

SlidingMenu的基础用法

摘要: slidingMenu = new SlidingMenu(getApplicationContext()); //设置菜单从左侧出来 slidingMenu.setMode(SlidingMenu.LEFT); //设置菜单的作用域 slidingMenu.setTouchModeAbove(Sl 阅读全文

posted @ 2016-07-01 08:06 白日梦游 阅读(293) 评论(0) 推荐(0) 编辑

OkHttp的post请求

摘要: OkHttpClient client = new OkHttpClient(); FormBody body = new FormBody.Builder() .add("mobile",mNumber) .add("type","1").build(); final Request reques 阅读全文

posted @ 2016-07-01 08:01 白日梦游 阅读(2437) 评论(0) 推荐(0) 编辑

导航