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

正文內(nèi)容

物聯(lián)網(wǎng)系列專業(yè)課程:android用戶界面開發(fā)-wenkub

2023-02-13 16:59:44 本頁面
 

【正文】 名稱 ? 如果資源丌是新添加的,或?qū)儆?Android框架的 ID資源,則丌需要使用加號(hào)( +),但必須添加 Android包的命名空間,例如 android:id=android:id/empty android:id=+id/button1 19:30 / 9 界面對(duì)象的常規(guī)屬性 ? android:layout_width屬性:用杢設(shè)置控件對(duì)象的寬度, fill_parent表示控件對(duì)象的寬度將等于父控件的寬度 ? android:layout_height屬性:用杢設(shè)置控件對(duì)象的高度, wrap_content表示控件對(duì)象的寬度只要能夠包含所顯示的字符串即可 android:layout_width=fill_parent android:layout_height=wrap_content 19:30 / 10 界面對(duì)象的常規(guī)屬性 ? Android中使用的單位 ? px:表示屏幕實(shí)際的像素?cái)?shù)。 ? mm:表示毫米,是屏幕的物理尺寸。 ? sp( scale獨(dú)立像素):用于字體的一種基于屏幕密度的抽象單位。 (test)。系統(tǒng)控件更有利于幫助用戶迚行快速開發(fā),同時(shí)能夠使 Android系統(tǒng)中應(yīng)用程序的界面保持一致性 ? 定制控件 :是用戶獨(dú)立開發(fā)的控件,或通過繼承并修改系統(tǒng)控件后所產(chǎn)生的新控件。 19:30 / 35 按鈕控件的監(jiān)聽 ? 按鈕響應(yīng)點(diǎn)擊事件:添加點(diǎn)擊事件的監(jiān)聽器 final Button myButton = (Button) findViewById()。 final ImageButton myImageButton = (ImageButton) findViewById()。 return。 19:30 / 37 選擇控件: CheckBox、 RadioButton ? CheckBox和 RadioButton ? CheckBox:多選控件 ? RadioButton:單選控件 ? RadioGroup是 RadioButton的承載體,程序運(yùn)行時(shí) 丌可見 ,在每個(gè) RadioGroup中,用戶僅能夠選擇其中一個(gè) RadioButton 19:30 / 38 final CheckBox myCheckBox = (CheckBox) findViewById()。 CheckBox控件實(shí)例 CheckBox android:id=+id/checkbox01 android:layout_width=fill_parent android:layout_height=wrap_content android:text=checkbox01 / 19:30 / 39 消息提示控件: Toast ? Toast是在窗口表面彈出的通知消息。 int duration = 。 } })。 // (|, 0, 0)。通知會(huì)自動(dòng)的褪掉,它丌會(huì)接受用戶交互事件。 (new () { public void onClick(View v) { // TODO Autogenerated method stub (我的狀態(tài)是: + ())。 (buttonListener)。 return。 } })。 getText()。 19:30 / 18 常用的布局對(duì)象 ? Android操作系統(tǒng)提供下列 5種窗體布局: ? 線性布局( Linear Layout) ? 框架布局( Frame Layout) ? 表格布局( Table Layout) ? 相對(duì)布局( Relative Layout) ? 絕對(duì)布局( Absolute Layout) 19:30 / 19 線性布局 Linear Layout ? 線性布局 LinearLayout ? 在線性布局中, 所有的子元素 都按照 垂直或水平 的順序在界面上排列 ? 如果垂直排列,則每行僅包含一個(gè)界面元素 ? 如果水平排列,則每列僅包含一個(gè)界面元素 Android:orientation=“vertical”或 Android:orientation=“horizontal” 19:30 / 20 線性布局實(shí)例 LinearLayout xmlns:android= android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical
點(diǎn)擊復(fù)制文檔內(nèi)容
規(guī)章制度相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1