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

正文內(nèi)容

智能家居整體程序說明-展示頁

2025-01-15 09:51本頁面
  

【正文】 oid:visibility=visible LinearLayout android:id=+id/LinearLayout1 android:layout_width=match_parent android:layout_height=match_parent android:layout_alignParentTop=true android:orientation=vertical GridView android:id=+id/gdv_main android:layout_width=match_parent android:layout_height=wrap_content android:listSelector=drawable/selector_list android:horizontalSpacing=10dp android:numColumns=2 android:verticalSpacing=10dp /GridView include android:id=+id/view_loading_error android:layout_width=match_parent android:layout_height=match_parent layout=layout/view_loading_error android:visibility=gone / include android:id=+id/view_loading android:layout_width=match_parent android:layout_height=match_parent layout=layout/view_loading android:visibility=gone / /LinearLayout /RelativeLayout /RelativeLayout 程序代碼如下: /** * 主界面 * */ public class MainActivity extends BaseActivity{ private TextView titlebar_left。 } ()。 } else{ (getBaseContext(), , ).show()。 (getApplicationContext()).save()。 } return null。amp。 mProgressDialog = (, getResources().getString(), getResources().getString(), false, true, null)。 } } /** * 登錄異步操作類 * */ private class LoginHttpRequestTask extends AsyncTaskString, Integer, ControlResultJson{ Override protected void onPreExecute() { // TODO Autogenerated method stub ()。 } }, 2022)。 tExit = new Timer()。 if (isExit == false) { isExit = true。 } } private static Boolean isExit = false。 case : startActivity(new Intent(,))。 break。 mLoginHttpRequestTask=new LoginHttpRequestTask()。 } Override public void onClick(View v) { // TODO Autogenerated method stub switch(()){ case : EditText edt_userName=(EditText)findViewById()。 } Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Autogenerated method stub if(keyCode == ) { exitBy2Click()。 findViewById().setOnClickListener(this)。 findViewById().setOnClickListener(this)。 mUserDAO=new UserDAO(this)。 public void onCreate(Bundle savedInstanceState) { (savedInstanceState)。 /** * 異步登錄對象 * */ private LoginHttpRequestTask mLoginHttpRequestTask=null。如果用戶只選中 “自動(dòng)登錄 ”時(shí),則系統(tǒng)會(huì)保存 “賬號(hào) ”和 “密碼 ”,下次自動(dòng)登錄系統(tǒng)。如果賬號(hào)或密碼不正確,則根據(jù)返回的標(biāo)記碼的不同,提示 “賬號(hào)不存在 ”或 “密碼不正確 ”。 getWindow().clearFlags()。= (~)。 } SuppressWarnings(unused) private void quitFullScreen(){ final attrs = getWindow().getAttributes()。 }。 } private void goMain() { ().addActivity(this)。 (animation)。 } }, SPLASH_TIME)。 Animation animation=(this, )。 View view=(this, null)。 public void onCreate(Bundle savedInstanceState) { (savedInstanceState)。、 項(xiàng)目實(shí)施 、 引導(dǎo)界面 、 引導(dǎo)界面 運(yùn)行程序時(shí)的過渡界面 ,程序的界面布局 如下圖所示 : 程序界面布局 代碼 如下 : ?xml version= encoding=utf8? LinearLayout xmlns:android= android:layout_width=fill_parent android:layout_height=fill_parent android:layout_gravity=center_vertical android:background=drawable/splash_bg android:orientation=vertical android:paddingBottom= android:paddingLeft= android:paddingRight= android:paddingTop= /LinearLayout 程序代碼如下: /** * 過渡頁面 * */ public class SplashActivity extends BaseActivity{ private Handler mHandler = new Handler()。 protected final int SPLASH_TIME = 500。 //setFullScreen()。 setContentView(view)。 (new AnimationListener() { Override public void onAnimationStart(Animation arg0) {} Override public void onAnimationRepeat(Animation arg0) {} Override public void onAnimationEnd(Animation arg0) { (new Runnable() { Override public void run() { goMain()。 } })。 } protected void onResume() { ()。 startActivity(new Intent(this,))。 SuppressWarnings(unused) private void setFullScreen(){ getWindow().setFlags(, )。 amp。 getWindow().setAttributes(attrs)。 } } 、 登錄界面 實(shí)現(xiàn)帳號(hào)和密碼輸入文本框 、 實(shí)現(xiàn)登錄按鍵功能 、 實(shí)現(xiàn)密碼記錄功能和自動(dòng)登錄功能 . 頁面布局如下圖所示 : 當(dāng)用戶輸入帳號(hào)和密碼,點(diǎn)擊登錄按鍵時(shí),系統(tǒng)讀取賬號(hào)和密碼文本框信息,并把賬號(hào)和密碼信息經(jīng)網(wǎng)絡(luò)傳輸給智能網(wǎng)關(guān) , 與智能網(wǎng)關(guān)中的數(shù)據(jù)庫中的賬號(hào)和密碼數(shù)據(jù)信息進(jìn)行比對,如果賬號(hào)和密碼同時(shí)存在于智能網(wǎng)關(guān)中的數(shù)據(jù)庫中,則允許用戶登錄系統(tǒng)。 當(dāng)用戶選中 “保存密碼 ”時(shí),系統(tǒng)會(huì)把 “賬號(hào)和密碼 ”保存在系統(tǒng)相關(guān)的配置文件中,當(dāng) 下次再登錄系統(tǒng)時(shí),則不需要再次輸入 “賬號(hào)和密碼 ”。程序的界面布局代碼如下: ?xml version= encoding=utf8? RelativeLayout xmlns:android= android:layout_width=fill_parent android:layout_height=fill_parent android:background=drawable/login_bg LinearLayout android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentTop=true android:layout_centerHorizontal=true android:layout_marginTop=100dp android:orientation=vertical android:background=null LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical android:paddingLeft=30dp android:paddingRight=30dp ImageView
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1