掃二維碼與項(xiàng)目經(jīng)理溝通
我們在微信上24小時(shí)期待你的聲音
解答本文疑問/技術(shù)咨詢/運(yùn)營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流
Android UI設(shè)計(jì)模式實(shí)例代碼是本文要介紹的內(nèi)容,主要是來了解并學(xué)習(xí)Android UI設(shè)計(jì),具體關(guān)于Android UI設(shè)計(jì)內(nèi)容的詳解來看本文。文章Android UI設(shè)計(jì)內(nèi)容的實(shí)現(xiàn)主要是以代碼來詳解,內(nèi)容不多。

- home.xml
- xmlns:android="http://schemas.android.com/apk/res/android">
- layout="@layout/background" />
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- layout="@layout/navigator" />
- layout="@layout/list"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_weight="1.0" />
- layout="@layout/tab" />
- background.xml
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/background"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:scaleType="fitXY"
- android:background="@color/background" />
- navigator.xml
- android:layout_width="fill_parent"
- android:layout_height="64dp"
- android:gravity="center_vertical"
- style="@android:style/ButtonBar">
- list.xml
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@android:id/list"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:cacheColorHint="@android:color/transparent"
- android:drawSelectorOnTop="false"
- android:listSelector="@drawable/list_selector_background"
- android:divider="@color/stroke"
- android:dividerHeight="@dimen/line_width" />
- tab.xml
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="?android:attr/listPreferredItemHeight">
- android:id="@+id/tab_profile"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/tab_profile"
- android:layout_weight="1.0"
- android:background="@drawable/bg_btn" />
- android:id="@+id/tab_friends"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1.0"
- android:src="@drawable/tab_friends"
- android:background="@drawable/bg_btn" />
- android:id="@+id/tab_games"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1.0"
- android:src="@drawable/tab_games"
- android:background="@drawable/bg_btn" />
小結(jié):Android UI設(shè)計(jì)模式實(shí)例代碼的內(nèi)容介紹完了,希望通過Android UI設(shè)計(jì)內(nèi)容的學(xué)習(xí)能對你有所幫助。

我們在微信上24小時(shí)期待你的聲音
解答本文疑問/技術(shù)咨詢/運(yùn)營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流