-1
我有一個填充JSON數據中的AsyncTask的onPostExecute在我的片列表視圖如何在onPostExecute中實現列表視圖按鈕的點擊事件?
ListAdapter adapter = new SimpleAdapter(getActivity(), branchList,
R.layout.list_branch_total_hours,
new String[] { TAG_BRANCHID, TAG_BRANCH_NM,TAG_BRANCHCODE,TAG_REGIONID,TAG_REGION_NAME,TAG_TOT_HR }, new int[]
{
R.id.hdnBranchId,R.id.btnBranch_nm, R.id.hdnBranchCode,
R.id.hdnRegionId,R.id.hdnRegionNm, R.id.btnTot_Hours}
);
list.setAdapter(adapter);
現在我有按鈕控制在如何實現按鈕的單擊事件list..so ???
在此先感謝...
覆蓋getView()方法,並註冊點擊按鈕。 –
我可以重寫該方法在我onpostExecute ???或我必須使自定義適配器? – user3818919