原创 Get網絡請求解析json串
// /得到HttpClient對象 HttpClient httpClient = new DefaultHttpClient(); // 得到連接方式對象,設置請求路徑 HttpGet httpGet = new H
原创 viewpager導航圖片
ViewPager vp = (ViewPager) findViewById(R.id.vp); findView(); vp.setAdapter(new MyAdapter(MainActivity.this, lis
原创 TimePickerView時間選擇器,選擇近兩個月的日期
private void initTimePicker1() {//選擇出生年月日 //控制時間範圍(如果不設置範圍,則使用默認時間1900-2100年,此段代碼可註釋) //因爲系統Calendar的月
原创 XListView 配置文件 需導入項目 類名:XListView
/** * @file XListView.java * @package me.maxwin.view * @create Mar 18, 2012 6:28:41 PM * @author Maxwin * @desc
原创 httpURLConnection獲得網絡數據解析json串
new Thread() { public void run() { getData(); }; }.start(); } /** * 獲取網絡數據 */ private void getDat
原创 彈出框
// 普通彈出框 AlertDialog.Builder dialog=new Builder(MainActivity.this); dialog.setMessage(“ ”)
原创 XListView 配置文件 需導入項目 類名:XListViewFooter
/** * @file XFooterView.java * @create Mar 31, 2012 9:33:43 PM * @author Maxwin * @description XListView's foote
原创 註解
//json串中a就是1 b就是2...... @SerializedName("1") public A a; @SerializedName("2") public B b; @SerializedName("3")