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

正文內(nèi)容

基于android的簡單用戶注冊系統(tǒng)課程設(shè)計報告(已改無錯字)

2022-07-26 00:58:11 本頁面
  

【正文】 android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:textSize=24sp android:textColor=ff0000 android:text=用戶登錄 android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content/TextViewTextView android:textSize=18sp android:text=登錄名稱: android:id=@+id/TextView02 android:layout_width=wrap_content android:layout_height=wrap_content/TextViewEditText android:text= android:id=@+id/EditText01 android:layout_width=fill_parent android:layout_height=wrap_content/EditTextTextView android:textSize=18sp android:text=登錄密碼: android:id=@+id/TextView03 android:layout_width=wrap_content android:layout_height=wrap_content/TextViewEditText android:text= android:id=@+id/EditText02 android:layout_width=fill_parent android:layout_height=wrap_content/EditTextButton android:text=登錄 android:id=@+id/Button01 android:layout_width=wrap_content android:layout_height=wrap_content/Button/LinearLayout 用XML實現(xiàn)用戶界面優(yōu)缺點 優(yōu)點:a)XML文件結(jié)構(gòu)清晰,易于擴(kuò)展,系統(tǒng)可擴(kuò)展性好。b) 用戶界面與業(yè)務(wù)邏輯完全分離,降低了系統(tǒng)界面與業(yè)務(wù)邏輯的耦合性。c)XML文件簡單易懂,可維護(hù)性好。缺點:XML文件構(gòu)建的界面已在配置文件中實現(xiàn),無法在系統(tǒng)運行時動態(tài)更新頁面。 程序代碼 package 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class zhuce extends Activity { public void showMsg(String value) { dialog=new (this)。 (系統(tǒng)提示)。 (value)。 (確定,null)。 ()。 } @Override public void onCreate(Bundle savedInstanceState) { (savedInstanceState)。 setContentView()。 Button ok=(Button)findViewById()。 (new OnClickListener() { public void onClick(View v) { EditText username=(EditText)findViewById()。 EditText password1=(EditText)findViewById()。 EditText password2=(EditText)findViewById()。 if(().length()==0) { showMsg(請輸入登錄名稱!)。 } else if(().length()==0) showMsg(請輸入登錄密碼!)。 else if(!().toString().equals(().toString())) showMsg(兩次輸入的密碼不一致!)。 else { try { DBHelper dh = new DBHelper(, , 1)。 SQLiteDatabase myschool = ()。 (注冊數(shù)據(jù)庫創(chuàng)建成功!)。 ContentValues cv = new ContentValues()。 (name, ().toString())。 (pwd, ().toString())。 long jg=(users, null, cv)。 if(jg0) { showMsg(注冊成功!)。 Intent intent=new Intent(,)。 startActivity(intent)。 } else showMsg(注冊失??!)。 } catch (Exception e) { showMsg(())。 } } } } )。 }} package 。import 。im
點擊復(fù)制文檔內(nèi)容
化學(xué)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1