日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
AndroidUI設(shè)計(jì)模式實(shí)例代碼

Android UI設(shè)計(jì)模式實(shí)例代碼是本文要介紹的內(nèi)容,主要是來(lái)了解并學(xué)習(xí)Android UI設(shè)計(jì),具體關(guān)于Android UI設(shè)計(jì)內(nèi)容的詳解來(lái)看本文。文章Android UI設(shè)計(jì)內(nèi)容的實(shí)現(xiàn)主要是以代碼來(lái)詳解,內(nèi)容不多。

 
 
  1. home.xml  
  2.  
  3.  
  4.     xmlns:android="http://schemas.android.com/apk/res/android"> 
  5.     
  6.         layout="@layout/background" /> 
  7.     
  8.         android:orientation="vertical" 
  9.         android:layout_width="fill_parent" 
  10.         android:layout_height="fill_parent"> 
  11.         
  12.             layout="@layout/navigator" /> 
  13.         
  14.             layout="@layout/list" 
  15.             android:layout_width="fill_parent" 
  16.             android:layout_height="fill_parent" 
  17.             android:layout_weight="1.0" /> 
  18.         
  19.             layout="@layout/tab" /> 
  20.      
  21.  
 
 
  1. background.xml  
  2.  
  3.  
  4. xmlns:android="http://schemas.android.com/apk/res/android" 
  5.     android:id="@+id/background" 
  6.     android:layout_width="fill_parent" 
  7.     android:layout_height="fill_parent" 
  8.     android:scaleType="fitXY" 
  9.     android:background="@color/background" /> 
 
 
  1. navigator.xml  
  2.  
  3.  
  4.         android:layout_width="fill_parent" 
  5.         android:layout_height="64dp" 
  6.         android:gravity="center_vertical" 
  7.         style="@android:style/ButtonBar"> 
  8.         
  9.             android:id="@+id/button_back" 
  10.             android:layout_width="wrap_content" 
  11.             android:layout_height="40dp" 
  12.             android:text="@string/back" /> 
  13.         
  14.             android:id="@+id/button_home" 
  15.             android:layout_width="wrap_content" 
  16.             android:layout_height="40dp" 
  17.             android:layout_alignParentRight="true" /> 
  18.         
  19.             android:id="@android:id/title" 
  20.             android:layout_width="fill_parent" 
  21.             android:layout_height="wrap_content" 
  22.             android:layout_toRightOf="@id/button_back" 
  23.             android:layout_toLeftOf="@id/button_home" 
  24.             android:gravity="center" 
  25.             android:singleLine="true" 
  26.             android:ellipsize="marquee" 
  27.             android:textAppearance="?android:attr/textAppearanceMedium" /> 
  28.      
 
 
  1. list.xml  
  2.  
  3.  
  4.     xmlns:android="http://schemas.android.com/apk/res/android" 
  5.     android:id="@android:id/list" 
  6.     android:layout_width="fill_parent" 
  7.     android:layout_height="fill_parent" 
  8.     android:cacheColorHint="@android:color/transparent" 
  9.     android:drawSelectorOnTop="false" 
  10.     android:listSelector="@drawable/list_selector_background" 
  11.     android:divider="@color/stroke" 
  12.     android:dividerHeight="@dimen/line_width" />  
 
 
  1. tab.xml  
  2.  
  3.  
  4.     xmlns:android="http://schemas.android.com/apk/res/android" 
  5.     android:layout_width="fill_parent" 
  6.     android:layout_height="?android:attr/listPreferredItemHeight"> 
  7.     
  8.         android:id="@+id/tab_profile" 
  9.         android:layout_width="wrap_content" 
  10.         android:layout_height="wrap_content" 
  11.         android:src="@drawable/tab_profile" 
  12.         android:layout_weight="1.0" 
  13.         android:background="@drawable/bg_btn" /> 
  14.     
  15.         android:id="@+id/tab_friends" 
  16.         android:layout_width="wrap_content" 
  17.         android:layout_height="wrap_content" 
  18.         android:layout_weight="1.0" 
  19.         android:src="@drawable/tab_friends" 
  20.         android:background="@drawable/bg_btn" /> 
  21.     
  22.         android:id="@+id/tab_games" 
  23.         android:layout_width="wrap_content" 
  24.         android:layout_height="wrap_content" 
  25.         android:layout_weight="1.0" 
  26.         android:src="@drawable/tab_games" 
  27.         android:background="@drawable/bg_btn" /> 
  28.  

小結(jié):Android UI設(shè)計(jì)模式實(shí)例代碼的內(nèi)容介紹完了,希望通過(guò)Android UI設(shè)計(jì)內(nèi)容的學(xué)習(xí)能對(duì)你有所幫助。


網(wǎng)站題目:AndroidUI設(shè)計(jì)模式實(shí)例代碼
當(dāng)前地址:http://www.dlmjj.cn/article/dphhesd.html