Android瘋狂ListViw之旅 第二季之 分組排序顯示資料
Android瘋狂ListView之旅 第二季
題記--遠方的風聲,穿過歲月的柵欄,某些往事,糾結成季節的藤,記憶中的花事,隔著一朵花開的光陰,攀在來時的路上,所多年前相遇的路口,擱淺成一片片泥濘...
圖 1-1
1. ListView中顯示的資料以英文字母的順序分組正序顯示 2. 支援ListView中相關資料的實時搜尋 3. 支援觸控索引條目顯示相應的資料
首先自定義一個右側的字母索引條
public class QuickIndexBar extends View { public QuickIndexBar(Context context) { this(context, null); } public QuickIndexBar(Context context, AttributeSet attrs) { this(context, attrs, 0); } public QuickIndexBar(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } }
1-2 在自定義View中繪製26個英文字母
注意: 在自定義View中畫文字時,是從左下角開始繪製的
1-2-1 . 建立繪製使用到的畫筆
private Paint mPaint; mPaint = new Paint(); mPaint.setColor(Color.WHITE); //設定搞鋸齒 mPaint.setAntiAlias(true); //設定字型樣式,這裡使用到的樣式是給字型加粗 mPaint.setTypeface(Typeface.DEFAULT_BOLD); mPaint.setTextSize(14f);
這一步的初始化操作要在構造方法中進行操作,切不要在Ondraw()方法中操作,因為ondraw方法會多次呼叫,可以避免多次建立物件,造成內在問題
1-2-2. 繪製26個英文字母
1-2-2-1.
每個字母所佔的格子的寬度就是當前控制元件的寬度
每個字母所佔的格子的高度就是當前控制元件的高度除以26
1-2-2-2.
繪製每個字母的起始點的X軸座標:當前字母所佔的格子的寬度的一半 - 字母寬度的一半(所有的字母的繪製起點X軸座標都是一樣的);
繪製每個字母的起始點的Y軸座標:當前字母所佔的格子的高度的一半 + 字母高度的一半 + (字母在陣列中的角標)*每個格子的高度;
1-2-2-3
建立包含26個英文字母的陣列
private static final String[] LETTERS = new String[] { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y","Z" };
1-2-2-4
計算每個格子所佔有的寬與高度可以在方法onSizeChanged中獲取當前控制元件的高度來計算
//每個字母所佔的格子的寬度 private int mCellWidth; //每個字母所佔的格子的高度 private float mCellHeight; @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); mCellWidth = getMeasuredWidth(); mCellHeight = getMeasuredHeight() * 1.0f / LETTERS.length; }
1-2-2-5.建立一個矩形用來獲取文字的高度,在構造中進行初始化操作
private Rect mBounds; mBounds = new Rect();
1-2-2-6
繪製26個英文字母
@Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); for (int i = 0; i < LETTERS.length; i++) { //獲取要繪製的字母 String text = LETTERS[i]; // 獲取文字寬度 float textWidth = mPaint.measureText(text); // 獲取文字寬高 mPaint.getTextBounds(text, 0, text.length(), mBounds); float textHeight = mBounds.height(); //獲取繪製當前文字的起始座標 float x = mCellWidth * 0.5f - textWidth * 0.5f; float y = mCellHeight * 0.5f + textHeight * 0.5f + i * mCellHeight; mPaint.setColor(mCurrentIndex == i ? Color.BLUE : Color.WHITE); canvas.drawText(text, x, y, mPaint); } }
1-3. 處理點選時的觸控事件
1-3-1.獲取觸控點片的對應的字母索引以及字母
@Override public boolean onTouchEvent(MotionEvent event) { float y; switch (event.getAction()) { case MotionEvent.ACTION_DOWN: //獲取觸控點對應的字母所對應的索引 y = event.getY(); index = (int) (y/mCellHeight); break; case MotionEvent.ACTION_MOVE: y = event.getY(); index = (int) (y/mCellHeight); break; case MotionEvent.ACTION_UP: break; default: break; } return true; }
1-4. 建立觸控監聽回撥,告訴呼叫都當前觸控獲得到的字母
1-4-1.建立一個回撥介面
public interface OnLetterChangeListener { void onLetterChange(String letter); } private OnLetterChangeListener mOnLetterChangeListener; public OnLetterChangeListener getOnLetterChangeListener() { return mOnLetterChangeListener; } public void setOnLetterChangeListener(OnLetterChangeListener onLetterChangeListener) { mOnLetterChangeListener = onLetterChangeListener; }
1-4-2.當觸控到的字母發生變化的時候回撥此介面來通知使用者
@Override public boolean onTouchEvent(MotionEvent event) { float y; int index; switch (event.getAction()) { case MotionEvent.ACTION_DOWN: //獲取觸控點對應的字母所對應的索引 y = event.getY(); index = (int) (y/mCellHeight); if(index < LETTERS.length && mCurrentIndex != index) { mCurrentIndex = index; //回撥介面 if(mOnLetterChangeListener != null) { mOnLetterChangeListener.onLetterChange(LETTERS[mCurrentIndex]); } } break; case MotionEvent.ACTION_MOVE: y = event.getY(); index = (int) (y/mCellHeight); if(index < LETTERS.length && mCurrentIndex != index) { mCurrentIndex = index; if(mOnLetterChangeListener != null) { mOnLetterChangeListener.onLetterChange(LETTERS[mCurrentIndex]); } } break; case MotionEvent.ACTION_UP: mCurrentIndex = -1; break; default: break; } invalidate(); return true; }
2 配合ListView來使用,對ListView中要顯示的資料按照字母的順序進行排序分組顯示
2-1 佈局檔案
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <!-- 搜尋輸入框--> <EditText android:id="@+id/et_main" android:hint="請輸入搜尋資訊" android:layout_width="match_parent" android:layout_height="40dp" /> <!-- 顯示資料 -> <ListView android:layout_below="@+id/et_main" android:id="@+id/lv_main" android:layout_width="match_parent" android:layout_height="match_parent" > </ListView> <!-- ListVeiw右側的字母索引控制元件--> <com.quickindex.QuickIndexBar android:id="@+id/index_bar" android:layout_width="30dp" android:layout_height="match_parent" android:layout_alignParentRight="true" android:background="#FF0000" /> <TextView android:id="@+id/tv_index" android:layout_width="100dp" android:layout_height="80dp" android:layout_centerInParent="true" android:background="@drawable/tv_index_bg" android:gravity="center" android:text="A" android:textColor="#FFFFFF" android:textSize="25sp" android:visibility="gone" /> </RelativeLayout>
2-2 設定資料來源,這裡我們設定了一些虛擬聯絡人資料
2-2-1 建立用於儲存聯絡人資訊的info類物件
public class ContastInfo implements Comparable<ContastInfo>{ private String mName; private String mPinyin; public ContastInfo(String name) { mName = name; mPinyin = PinYinUtil.toPinyin(name); } public String getName() { return mName; } public void setName(String name) { mName = name; } public String getPinyin() { return mPinyin; } public void setPinyin(String pinyin) { mPinyin = pinyin; } @Override public int compareTo(ConfastInfo another) { return mPinyin.compareTo(another.getPinyin()); } }
說明:
2-2-1-1
由於要對每個聯絡人進行分組排序顯示,所以我們需要儲存聯絡人資訊的物件具備比較性,這裡使用實現介面的方法,
在compareTo方法中比較規則是每個聯絡人姓名的首字母,
2-2-1-2
這裡儲存的手機聯絡人的姓名全部是漢字字元,所以需要一個將漢字轉換成拼音的工具
public class PinYinUtil { private static HanyuPinyinOutputFormat format; public static String toPinyin(String string) { if(format == null) { format = new HanyuPinyinOutputFormat(); //將拼音轉換成大寫字母 format.setCaseType(HanyuPinyinCaseType.UPPERCASE); //設定去除聲調 format.setToneType(HanyuPinyinToneType.WITHOUT_TONE); } char c = 0; StringBuilder sb = new StringBuilder(); try { char[] charArray = string.toCharArray(); for(int i=0; i<charArray.length; i++) { c = charArray[i]; String[] pinyinStringArray = PinyinHelper.toHanyuPinyinStringArray(c, format); if(pinyinStringArray!= null && pinyinStringArray.length>0) { sb.append(pinyinStringArray[0]); } } } catch (BadHanyuPinyinOutputFormatCombination e) { e.printStackTrace(); } return sb.toString(); }
注: 這裡使用到一個第三方jar包,用於將漢字轉成拼音pinyin4j-2.5.0.jar
2-2-2 相關資訊儲存到集合中去,並對集合進行排序
private ArrayList<ContastInfo> mPersons = new ArrayList<ContastInfo>(); Collections.sort(mPersons);
2-2-3 建立相應的Adapter來進行資料設定
public class NameAdapter extends BaseAdapter implements ListAdapter { private ArrayList<ContastInfo> mPersons; private Context mContext; private String mFirstLetter; private String mPreFirstLetter; public NameAdapter(Context context, ArrayList<ContastInfo> persons) { mContext = context; mPersons = persons; } @Override public int getCount() { return mPersons.size(); } @Override public Object getItem(int position) { return null; } @Override public long getItemId(int position) { return 0; } @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) { convertView = View.inflate(mContext, R.layout.lv_item, null); holder = new ViewHolder(); holder.mTvName = (TextView) convertView.findViewById(R.id.tv_name); holder.mTvPinyin = (TextView) convertView.findViewById(R.id.tv_pinyin); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } //獲取對應位置的聯絡人 ContastInfo person = mPersons.get(position); //獲取當前位置的聯絡人的姓名中的首字母 mFirstLetter = String.valueOf(person.getPinyin().charAt(0)); if (position == 0) { mPreFirstLetter = "-"; } else { //獲取上一位置的聯絡人的姓名中的首字母 ContastInfo prePerson = mPersons.get(position - 1); mPreFirstLetter = String.valueOf(prePerson.getPinyin().charAt(0)); } holder.mTvName.setText(person.getName()); //如果相鄰聯絡人的姓名首字母不相等,則顯示分組資訊對應的字母,否則不顯示 holder.mTvPinyin.setVisibility(TextUtils.equals(mPreFirstLetter, mFirstLetter) ? View.GONE : View.VISIBLE); holder.mTvPinyin.setText(String.valueOf(person.getPinyin().charAt(0))); return convertView; } static class ViewHolder { TextView mTvName; TextView mTvPinyin; } public void updateListView(ArrayList<ContastInfo> persons) { this.mPersons = persons; notifyDataSetChanged(); } }
2-2-4 設定到ListView中進行資料顯示
private ListView mListView; mListView = (ListView) findViewById(R.id.lv_main); mListView.setAdapter(new NameAdapter(getApplicationContext(), mPersons));
3. 手指觸控右側索引條,listView中顯示對應字母的分組資訊
3-1. 為字母顯示索引條設定監聽回撥
mIndexBar.setOnLetterChangeListener(new OnLetterChangeListener() { @Override public void onLetterChange(String letter) { showText(letter); for(int i = 0; i<mPersons.size(); i++) { ContastInfo goodMan = mPersons.get(i); String firstLetter = String.valueOf(goodMan.getPinyin().charAt(0)); if(TextUtils.equals(firstLetter, letter)) { mListView.setSelection(i); break; } } } });
4. 設定條目搜尋框
4-1.可以在ListView上面放一個EditView輸入搜尋的文字
private EditText mEditText;(初始化控制元件操作)
4-2.設定輸入文字監聽
mEditText.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { String string = s.toString(); updateListView(string); } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void afterTextChanged(Editable s) { } }); protected void updateListView(String string) { ArrayList<GoodMan> persons= new ArrayList<GoodMan>(); if (TextUtils.isEmpty(string)) { persons=mPersons; }else{ persons.clear(); for (int i = 0; i < mPersons.size(); i++) { GoodMan goodMan = mPersons.get(i); String pinyin = goodMan.getPinyin(); if(pinyin.indexOf(string.toString()) != -1 || goodMan.getName().startsWith(string.toString())){ persons.add(goodMan); } } } Collections.sort(persons); adapter.updateListView(persons); }
擴充套件:
在上面,我們是利用了pinyin這個第三方的jar包對其中漢字轉拼音進行的操作
這裡我們再擴充套件一種其他的方法來進行漢字轉拼音的操作
資料來源:
String[] datasArray = { “阿妹" “阿郎" “陳奕迅" “周杰倫" “曾一鳴" “成龍" “王力巨集" “汪峰" “王菲" “那英"};
儲存資料的info類
public class SortModel { public String name; //顯示的資料 public String sortLetters; //顯示資料拼音的首字母 }
將陣列中的資訊使用info類物件的方法儲存到一個集合中去
List<SortModel> mSortList = new ArrayList<SortModel>(); //例項化漢字轉拼音類 CharacterParser characterParser = CharacterParser.getInstance(); for(int i=0; i<datasArray.length; i++){ SortModel sortModel = new SortModel(); sortModel.name = datasArray[i]; //漢字轉換成拼音 String pinyin = characterParser.getSelling(datasArray[i]); //獲取首字母並轉成大寫 String sortString = pinyin.substring(0, 1).toUpperCase(); // 正則表示式,判斷首字母是否是英文字母 /if(sortString.matches("[A-Z]")){ sortModel.sortLetters = (sortString.toUpperCase()); }else{ sortModel.sortLetters = ("#"); } mSortList.add(sortModel); }
</pre><pre>
可以看到這裡使用了一個物件characterParser物件的方法getSelling方法將漢字轉成了拼音,然後將拼音的首字母儲存起來
將集合中的資訊進行排序
// 根據a-z進行排序源資料 Collections.sort(mSortList , pinyinComparator)
其中 mSorList是我們要進行排序的集合資訊,pinyinComparator是我們自定義的排序規則
public class PinyinComparator implements Comparator<SortModel> {
public int compare(SortModel o1, SortModel o2) {
if (o1.getSortLetters().equals("@")
|| o2.getSortLetters().equals("#")) {
return -1;
} else if (o1.getSortLetters().equals("#")
|| o2.getSortLetters().equals("@")) {
return 1;
} else {
return o1.getSortLetters().compareTo(o2.getSortLetters());
}
}
}
分析characterParser物件的方法getSelling方法將漢字轉成拼音
在CharacterParser這個漢字轉拼音的類中,getSelling這個方法是一個片語解析的方法
public String getSelling(String chs) { String key, value; buffer = new StringBuilder(); for (int i = 0; i < chs.length(); i++) { key = chs.substring(i, i + 1); if (key.getBytes().length >= 2) { value = (String) convert(key); if (value == null) { value = "unknown"; } } else { value = key; } buffer.append(value); } return buffer.toString(); }
可以看到,我們將一個字串傳到這個方法中後,for迴圈中,會呼叫到方法 convert,對字串中的每一個字元進行拼音的轉換
接下來再看 convert這個方法
public String convert(String str) { String result = null; int ascii = getChsAscii(str); if (ascii > 0 && ascii < 160) { result = String.valueOf((char) ascii); } else { for (int i = (pyvalue.length - 1); i >= 0; i--) { if (pyvalue[i] <= ascii) { result = pystr[i]; break; } } } return result; }
這個方法其實就是將單個字條解析成為拼音的方法,其中首先呼叫了方法 getChsAscii這個方法,這是一個將漢字轉換為 ASCII碼的方法
private int getChsAscii(String chs) { int asc = 0; try { byte[] bytes = chs.getBytes("gb2312"); if (bytes == null || bytes.length > 2 || bytes.length <= 0) { throw new RuntimeException("illegal resource string"); } if (bytes.length == 1) { asc = bytes[0]; } if (bytes.length == 2) { int hightByte = 256 + bytes[0]; int lowByte = 256 + bytes[1]; asc = (256 * hightByte + lowByte) - 256 * 256; } } catch (Exception e) { System.out.println("ERROR:ChineseSpelling.class-getChsAscii(String chs)" + e); } return asc; }
在convert這個方法,呼叫方法 getChsAscii獲取到單個字元對應的ASCII碼,然後根據ASCII碼生成對應的拼音字元
其中使用到了兩個常用集合
private static int[] pyvalue = new int[] {-20319, -20317, -20304, -20295, -20292, -20283, -20265, -20257, -20242, -20230, -20051, -20036, -20032,
-20026, -20002, -19990, -19986, -19982, -19976, -19805, -19784, -19775, -19774, -19763, -19756, -19751, -19746, -19741, -19739, -19728,
-19725, -19715, -19540, -19531, -19525, -19515, -19500, -19484, -19479, -19467, -19289, -19288, -19281, -19275, -19270, -19263, -19261,
-19249, -19243, -19242, -19238, -19235, -19227, -19224, -19218, -19212, -19038, -19023, -19018, -19006, -19003, -18996, -18977, -18961,
-18952, -18783, -18774, -18773, -18763, -18756, -18741, -18735, -18731, -18722, -18710, -18697, -18696, -18526, -18518, -18501, -18490,
-18478, -18463, -18448, -18447, -18446, -18239, -18237, -18231, -18220, -18211, -18201, -18184, -18183, -18181, -18012, -17997, -17988,
-17970, -17964, -17961, -17950, -17947, -17931, -17928, -17922, -17759, -17752, -17733, -17730, -17721, -17703, -17701, -17697, -17692,
-17683, -17676, -17496, -17487, -17482, -17468, -17454, -17433, -17427, -17417, -17202, -17185, -16983, -16970, -16942, -16915, -16733,
-16708, -16706, -16689, -16664, -16657, -16647, -16474, -16470, -16465, -16459, -16452, -16448, -16433, -16429, -16427, -16423, -16419,
-16412, -16407, -16403, -16401, -16393, -16220, -16216, -16212, -16205, -16202, -16187, -16180, -16171, -16169, -16158, -16155, -15959,
-15958, -15944, -15933, -15920, -15915, -15903, -15889, -15878, -15707, -15701, -15681, -15667, -15661, -15659, -15652, -15640, -15631,
-15625, -15454, -15448, -15436, -15435, -15419, -15416, -15408, -15394, -15385, -15377, -15375, -15369, -15363, -15362, -15183, -15180,
-15165, -15158, -15153, -15150, -15149, -15144, -15143, -15141, -15140, -15139, -15128, -15121, -15119, -15117, -15110, -15109, -14941,
-14937, -14933, -14930, -14929, -14928, -14926, -14922, -14921, -14914, -14908, -14902, -14894, -14889, -14882, -14873, -14871, -14857,
-14678, -14674, -14670, -14668, -14663, -14654, -14645, -14630, -14594, -14429, -14407, -14399, -14384, -14379, -14368, -14355, -14353,
-14345, -14170, -14159, -14151, -14149, -14145, -14140, -14137, -14135, -14125, -14123, -14122, -14112, -14109, -14099, -14097, -14094,
-14092, -14090, -14087, -14083, -13917, -13914, -13910, -13907, -13906, -13905, -13896, -13894, -13878, -13870, -13859, -13847, -13831,
-13658, -13611, -13601, -13406, -13404, -13400, -13398, -13395, -13391, -13387, -13383, -13367, -13359, -13356, -13343, -13340, -13329,
-13326, -13318, -13147, -13138, -13120, -13107, -13096, -13095, -13091, -13076, -13068, -13063, -13060, -12888, -12875, -12871, -12860,
-12858, -12852, -12849, -12838, -12831, -12829, -12812, -12802, -12607, -12597, -12594, -12585, -12556, -12359, -12346, -12320, -12300,
-12120, -12099, -12089, -12074, -12067, -12058, -12039, -11867, -11861, -11847, -11831, -11798, -11781, -11604, -11589, -11536, -11358,
-11340, -11339, -11324, -11303, -11097, -11077, -11067, -11055, -11052, -11045, -11041, -11038, -11024, -11020, -11019, -11018, -11014,
-10838, -10832, -10815, -10800, -10790, -10780, -10764, -10587, -10544, -10533, -10519, -10331, -10329, -10328, -10322, -10315, -10309,
-10307, -10296, -10281, -10274, -10270, -10262, -10260, -10256, -10254};
public static String[] pystr = new String[] {"a", "ai", "an", "ang", "ao", "ba", "bai", "ban", "bang", "bao", "bei", "ben", "beng", "bi", "bian",
"biao", "bie", "bin", "bing", "bo", "bu", "ca", "cai", "can", "cang", "cao", "ce", "ceng", "cha", "chai", "chan", "chang", "chao", "che",
"chen", "cheng", "chi", "chong", "chou", "chu", "chuai", "chuan", "chuang", "chui", "chun", "chuo", "ci", "cong", "cou", "cu", "cuan",
"cui", "cun", "cuo", "da", "dai", "dan", "dang", "dao", "de", "deng", "di", "dian", "diao", "die", "ding", "diu", "dong", "dou", "du",
"duan", "dui", "dun", "duo", "e", "en", "er", "fa", "fan", "fang", "fei", "fen", "feng", "fo", "fou", "fu", "ga", "gai", "gan", "gang",
"gao", "ge", "gei", "gen", "geng", "gong", "gou", "gu", "gua", "guai", "guan", "guang", "gui", "gun", "guo", "ha", "hai", "han", "hang",
"hao", "he", "hei", "hen", "heng", "hong", "hou", "hu", "hua", "huai", "huan", "huang", "hui", "hun", "huo", "ji", "jia", "jian",
"jiang", "jiao", "jie", "jin", "jing", "jiong", "jiu", "ju", "juan", "jue", "jun", "ka", "kai", "kan", "kang", "kao", "ke", "ken",
"keng", "kong", "kou", "ku", "kua", "kuai", "kuan", "kuang", "kui", "kun", "kuo", "la", "lai", "lan", "lang", "lao", "le", "lei", "leng",
"li", "lia", "lian", "liang", "liao", "lie", "lin", "ling", "liu", "long", "lou", "lu", "lv", "luan", "lue", "lun", "luo", "ma", "mai",
"man", "mang", "mao", "me", "mei", "men", "meng", "mi", "mian", "miao", "mie", "min", "ming", "miu", "mo", "mou", "mu", "na", "nai",
"nan", "nang", "nao", "ne", "nei", "nen", "neng", "ni", "nian", "niang", "niao", "nie", "nin", "ning", "niu", "nong", "nu", "nv", "nuan",
"nue", "nuo", "o", "ou", "pa", "pai", "pan", "pang", "pao", "pei", "pen", "peng", "pi", "pian", "piao", "pie", "pin", "ping", "po", "pu",
"qi", "qia", "qian", "qiang", "qiao", "qie", "qin", "qing", "qiong", "qiu", "qu", "quan", "que", "qun", "ran", "rang", "rao", "re",
"ren", "reng", "ri", "rong", "rou", "ru", "ruan", "rui", "run", "ruo", "sa", "sai", "san", "sang", "sao", "se", "sen", "seng", "sha",
"shai", "shan", "shang", "shao", "she", "shen", "sheng", "shi", "shou", "shu", "shua", "shuai", "shuan", "shuang", "shui", "shun",
"shuo", "si", "song", "sou", "su", "suan", "sui", "sun", "suo", "ta", "tai", "tan", "tang", "tao", "te", "teng", "ti", "tian", "tiao",
"tie", "ting", "tong", "tou", "tu", "tuan", "tui", "tun", "tuo", "wa", "wai", "wan", "wang", "wei", "wen", "weng", "wo", "wu", "xi",
"xia", "xian", "xiang", "xiao", "xie", "xin", "xing", "xiong", "xiu", "xu", "xuan", "xue", "xun", "ya", "yan", "yang", "yao", "ye", "yi",
"yin", "ying", "yo", "yong", "you", "yu", "yuan", "yue", "yun", "za", "zai", "zan", "zang", "zao", "ze", "zei", "zen", "zeng", "zha",
"zhai", "zhan", "zhang", "zhao", "zhe", "zhen", "zheng", "zhi", "zhong", "zhou", "zhu", "zhua", "zhuai", "zhuan", "zhuang", "zhui",
"zhun", "zhuo", "zi", "zong", "zou", "zu", "zuan", "zui", "zun", "zuo"};
密碼:3owg
Android ListView瘋狂之旅 第一季 《側滑Button刪除條目》 |
Android ListVeiw 瘋狂之旅 第三季 《自定義下拉重新整理功能的ListView> |