- 博客(12)
- 收藏
- 关注
原创 自定义ListView
package com.team3.baby.widget;import android.annotation.TargetApi;import android.content.Context;import android.os.Build;import android.util.AttributeSet;import android.widget.ListView;public
2017-06-06 13:58:58
238
原创 OKhttpUtils
public class OkUtils { static final int GET_EXCUTE = 111; static final int GET_ENQUEUE = 222; static final int POST_EXCUTE = 333; static final int POST_ENQUEUE = 111; private OkUt
2017-05-13 08:58:04
405
原创 添加动画
public class LogoActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layou
2017-04-04 21:33:49
236
原创 添加数据库
public class MySqlite extends SQLiteOpenHelper { public MySqlite(Context context) { super(context, "MyInfo", null, 2); } public MySqlite(Context context, String name, SQLiteDataba
2017-04-04 21:32:38
293
原创 listview多条目加载
public class MyBaseAdapter extends BaseAdapter { private Context context; private ArrayList list; private final int Type_1 = 0; private final int Type_2 = 1; private final int Typ
2017-04-04 20:37:22
296
原创 判断网络
public class NetUtil { //判断是不是wifi public static boolean isWifi(Context context){ ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SER
2017-04-04 17:32:05
210
原创 fragment的管理
private void initData() { fragmentManager = getSupportFragmentManager(); fragment1 = new Fragment1(); fragment2 = new Fragment2(); fragment3 = new Fragment3();
2017-03-26 20:31:22
253
原创 无限轮播
viewPager.setCurrentItem(num); protected void onResume() { super.onResume(); Timer timer = new Timer(); timer.schedule(new TimerTask() { @Override public void run()
2017-03-19 19:34:15
170
原创 MyPageAdapter
public class MyPageAdapter extends PagerAdapter { private Context context; private ArrayList list; public MyPageAdapter(Context context, ArrayList list) { this.context = context;
2017-03-19 19:28:31
279
原创 MyAppliction
public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); ImageLoaderConfiguration configuration = new ImageLoaderConfiguration
2017-03-19 19:26:51
212
原创 ImageLoaderUtils
public class ImageLoaderUtils { public static DisplayImageOptions getOptions() { DisplayImageOptions options = new DisplayImageOptions.Builder() .showImageForEmptyUri(R.mi
2017-03-19 19:02:52
200
原创 HttpURLconnection
public class HttpUrlConnectionUtils extends Thread { private Handler handler; private String sUrl; private String s; public HttpUrlConnectionUtils(Handler handler, String sUrl) {
2017-03-19 18:51:34
243
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人