上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 62 下一页
  2013年6月5日
摘要: 布局文件<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <com.nil.android.keyword.KeywordsFlow android:id="@+id/keywordsFlow" android:layout_width="fil 阅读全文
posted @ 2013-06-05 17:10 大米稀饭 阅读(252) 评论(0) 推荐(0)
摘要: 1.格式化 当前日期 2013-01-02 public String FormatCurrentDate(int year, int month, int day) { String format = null; if (month < 10) { if (day < 10) { format = year + "-0" + month + "-0" + day; } else { format = year + "-0" + month + "-" + ... 阅读全文
posted @ 2013-06-05 16:32 大米稀饭 阅读(306) 评论(0) 推荐(0)
  2013年6月4日
摘要: main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <c 阅读全文
posted @ 2013-06-04 17:46 大米稀饭 阅读(220) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2013-06-04 14:39 大米稀饭 阅读(1) 评论(0) 推荐(0)
  2013年6月3日
摘要: 1. 先定义一个Dialog类,以供调用 public static VProgressDialog createDialog(Activity activity) { dialog = new VProgressDialog(activity, R.style.Theme_DialogActivity); dialog.setContentView(R.layout.loading); dialog.getWindow().getAttributes().gravity = Gravity.CENTER; dialog.setCa... 阅读全文
posted @ 2013-06-03 18:11 大米稀饭 阅读(212) 评论(0) 推荐(0)
摘要: 这个ViewHolder到底是什么呢?我们可以在官方sample看到这段代码http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List14.htmlstatic class ViewHolder { TextView text; ImageView icon; }View Code 可以看到它只是一个静态类,它的作用就在于减少不必要的调用findViewById完整的官方例子,官方例子中convertView... 阅读全文
posted @ 2013-06-03 16:35 大米稀饭 阅读(309) 评论(0) 推荐(0)
摘要: 1 阅读全文
posted @ 2013-06-03 16:32 大米稀饭 阅读(105) 评论(0) 推荐(0)
摘要: public class ListBaseAdapter extends BaseAdapter { private Context context; private ArrayList<String> list; public int count = 30; public ListBaseAdapter (Context context, ArrayList<String> list ) { this.context = context; this.list = list; } @Overrid... 阅读全文
posted @ 2013-06-03 15:50 大米稀饭 阅读(235) 评论(0) 推荐(0)
  2013年6月2日
摘要: package com.snail.intentobject; import java.io.Serializable; public class PersonSer implements Serializable { // serialVersionUID的作用是在修改实体类后,可以正常的序列化和 阅读全文
posted @ 2013-06-02 12:19 大米稀饭 阅读(488) 评论(0) 推荐(0)
  2013年5月30日
摘要: import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { supe... 阅读全文
posted @ 2013-05-30 15:31 大米稀饭 阅读(274) 评论(0) 推荐(0)
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 62 下一页