日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

android实现电话功能实验报告,安卓开发实验报告-20210407005833.docx-原创力文档

發布時間:2023/12/10 编程问答 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 android实现电话功能实验报告,安卓开发实验报告-20210407005833.docx-原创力文档 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

文檔編制序號:[KKIDT-LLE0828-LLETD298-POI08]

文檔編制序號:[KKIDT-LLE0828-LLETD298-POI08]

安卓開發實驗報告

安卓開發實驗報告

目錄

頁面跳轉

長按圖標抖動以及顯示刪除

頁面跳轉

功能:通過點擊button實現2個activity之間的跳轉。

1.設置監聽器監聽點擊button

2.使用intent傳輸數據

完整代碼

class UI_Test extends Activity {

@Override

protected void onCreate(Bundle savedInstanceState) {

(savedInstanceState);

setContentView Button bt = (Button)findViewById (new OnClickListener());

}

class OnClickListener implements {

public void onClick(View v){

EditText name = (EditText)findViewById EditText password = (EditText)findViewById Bundle data=new Bundle();

("name", ().toString());

("password", ().toString());

Intent intent = new Intent,;

(data);

startActivity(intent);

}

}

class UI_Result extends Activity {

@Override

protected void onCreate(Bundle savedInstanceState) {

(savedInstanceState);

setContentView TextView name = (TextView)findViewById TextView password = (TextView)findViewById Intent intent=getIntent();

Bundle result = ();

("您的用戶名為: "+("name"));

("您的密碼為: "+("password"));

}

}

version="" encoding="utf-8">

android:layout_width="fill_parent"

android:layout_height="fill_parent"

>

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:text="請輸入您的信息"

android:textSize="20sp"

/>

android:id="@+id/tableRow1"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

>

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:text="用戶名"

android:textSize="16sp"

/>

android:id="@+id/name"

android:layout_width="fill_parent"

an

總結

以上是生活随笔為你收集整理的android实现电话功能实验报告,安卓开发实验报告-20210407005833.docx-原创力文档的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。