freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)設(shè)計(jì)-android日程管理專家-資料下載頁

2025-11-24 20:16本頁面

【導(dǎo)讀】斷的運(yùn)用新的技術(shù)來方便自己。要求人們在某一時段有什么要辦的事時有某種東。這就需要有相關(guān)的軟件,在這種情況。下,日程管理專家剛好滿足了人們的這種需求。本系統(tǒng)是根據(jù)GoogleAndroid平臺用戶的喜好和其平臺的特性而設(shè)計(jì)的,本文概括的介紹了GoogleAndroid開發(fā)的流程,并重點(diǎn)的介紹。了基于GoogleAndroid平臺的日程管理專家的開發(fā)過程。臺的日程管理專家進(jìn)行了需求分析。然后選取了日程管理專家的存儲機(jī)制。在參閱相關(guān)資料下,選擇了日程管。在此過程中,不僅調(diào)用了系統(tǒng)提供的控件,也使用了自定義控件。在文中,著重的從系統(tǒng)的。androidmarket上供用戶下載使用。并根據(jù)用戶提供的反饋對本系統(tǒng)做出相應(yīng)的

  

【正文】 ( new OnClickListener() { @Override public void onClick(View v) { Calendar c=()。 int t1=()。 int t2=()+1。 int t3=()。 schTemp=new Schedule(t1,t2,t3)。//臨時新建 一個日程 對象,年月日設(shè)為當(dāng)前日期 wcNewOrEdit=。//調(diào)用日程編輯界面的是新建按鈕 gotoSetting()。//去日程編輯界面 } } )。 日程管理專家的 顯示 ( 1)其主要界面設(shè)計(jì)如圖 491 所示 圖 491 ( 2) 其主要代碼如下: public Schedule(int sn,String date1,String time1,String date2,String time2,String title,String note,String type,String timeSet,String alarmSet) { =sn。 =date1。 =time1。 =date2。 =time2。 =title。 =note。 =type。 =(timeSet)。 =(alarmSet)。 } 設(shè)置適配器代碼如下: ( new BaseAdapter() { @Override public int getCount() { return ()。 } @Override public Object getItem(int position) { return (position)。 } @Override public long getItemId(int position) { return 0。 } @Override public View getView(int position, View convertView, ViewGroup parent) { LinearLayout ll=new LinearLayout()。 ()。 (5, 5, 5, 5)。 LinearLayout llUp=new LinearLayout()。 ()。 LinearLayout llDown=new LinearLayout()。 ()。 //ListView中日期 TextView TextView tvDate=new TextView()。 ((position).getDate1()+ )。 (17)。 ((129666))。 (tvDate)。 //ListView時間 TextView TextView tvTime=new TextView()。 ((position).timeForListView())。 (17)。 ((925301))。 (tvTime)。 //若日程已過期,則日期和時間顏色、背景色設(shè)置為過期的顏色 if((position).isPassed()) { (getResources().getColor(ext))。 (getResources().getColor(ext))。 (getResources().getColor(hbg))。 } //如果該項(xiàng)被選中了,背景色設(shè)置為選中的背景色 if((position)) { (getResources().getColor(sch))。 } //如果有鬧鐘,則加上鬧鐘的圖標(biāo) if((position).getAlarmSet()) { ImageView iv=new ImageView()。 (getResources().getDrawable(m))。 (new LayoutParams(20, 20))。 (iv)。 } //日程類型 TextView TextView tvType=new TextView()。 ((position).typeForListView())。 (17)。 ((b20210))。 (tvType)。 //日程標(biāo)題 TextView TextView tvTitle=new TextView()。 ((position).getTitle())。 (17)。 ((000000))。 (tvTitle)。 (llUp)。 (llDown)。 return ll。 } } )。 ( 3)當(dāng)用戶點(diǎn)擊 是其頁面如圖 492: 圖 492 其主要代碼如下: ImageButton bCheck=(ImageButton)findViewById()。 ( new OnClickListener() { @Override public void onClick(View v) { showDialog(DIALOG_CHECK)。 } } )。 } 日程管理專家的刪除 ( 1)當(dāng)用戶點(diǎn)擊 時 其界面設(shè)計(jì)如圖 410 所示: 圖 410 ( 2) 其主要代碼如下: final ImageButton bDel=(ImageButton)findViewById()。 ( new OnClickListener() { @Override public void onClick(View v) { showDialog(DIALOG_SCH_DEL_CONFIRM)。 } } )。 日程管理 專家的清空 (1)當(dāng)用戶點(diǎn)擊 時 其界面如圖 411 所示 圖 411 ( 2) 其主要代碼如下: ImageButton bDelAll=(ImageButton)findViewById()。 ( new OnClickListener() { @Override public void onClick(View v) { showDialog(DIALOG_ALL_DEL_CONFIRM)。 } } )。 日程管理專家的修改 (1)當(dāng)用戶點(diǎn)擊 時 其界面如圖 45 所示。 (2)其主要代碼如下: final ImageButton bEdit=(ImageButton)findViewById()。 ( new OnClickListener() { @Override public void onClick(View v) { wcNewOrEdit=。//調(diào)用日程編輯界面的是修改按鈕 gotoSetting()。//去日程編輯界面 } } )。 日 程管理專家的查詢 ( 1)當(dāng)用戶點(diǎn)擊 時其界面如圖 412 所示。 圖 412 ( 2) 其主要代碼如下: ImageButton bSearch=(ImageButton)findViewById()。 ( new OnClickListener() { @Override public void onClick(View v) { gotoSearch()。 } } )。 數(shù)據(jù)的持久化 在 Google Android 平臺中,數(shù)據(jù)的持久化,官方提供了四種方法,分別為:; Provider; 3. SharePerfrence 4. Files。 考慮到基于 Google Android 平臺的新聞閱讀器的存儲量不是很大,且數(shù)據(jù)格 式非常的規(guī)則,再上更新起來非常的頻繁,所以筆者采用了數(shù)據(jù)庫 (Google Android 平臺自帶的 SQlite)來進(jìn)行數(shù)據(jù)的持久化。其關(guān)鍵代碼如下: static SQLiteDatabase sld。 //============================ 所 有 處 理 類 型 數(shù) 據(jù) 庫 的 方 法start============================== public static void loadType(RcActivity father)//從類型數(shù)據(jù)庫中讀取數(shù)據(jù) { try { sld= ( /data/data/, null, |RY )。 String sql=create table if not exists type(tno integer primary key,tname varchar2(20))。 (sql)。 Cursor cursor=(type, null, null, null, null, null, tno)。 int count=()。 if(count==0)//如果是第一次運(yùn)行程序,自動創(chuàng)建 3個缺省類型 { for(int i=0。i。i++) { sql=insert into type values(+i+,39。+[i]+39。)。 (sql)。 } cursor=(type, null, null, null, null, null, tno)。 count=()。 } ()。 while(()) { ((1))。 } ()。 ()。 }catch(Exception e) { (father, 類 型 數(shù) 據(jù) 庫 打 開 創(chuàng) 建 錯 誤 :+(), ).show()。 } } public static boolean insertType(RcActivity father,String newType)//更新類型數(shù)據(jù)庫 { Cursor cursor=null。 boolean duplicate=false。//false代表沒有類型名稱重復(fù), true代表有重復(fù) try { sld= ( /data/data/, null, )。 cursor=(type, null, null, null, null, null, tno)。 ()。 while(())//存入新日程時,
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1