et1.setText("");
et1.getText().toString();
效果: 佈局代碼: <ProgressBar android:id="@+id/bar" android:layout_width="match_parent" android:layout_height
效果展示: 定義菜單控件: <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/andro
1.基礎文本框 <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:maxL
1->2 1中代碼: intent.putExtra("username",s); 2中代碼: Intent intent=getIntent(); String s=intent.getStringExtra("username
對話框效果: 模板: //退出 AlertDialog.Builder tuichu_builder =new AlertDialog.Builder(MainActivity.this); tuichu_builder.set
1.基礎button代碼: <Button android:layout_width="match_parent" android:layout_height="wrap_content" android: