AndroidUI设计模式实例代码
Android UI设计模式实例代码是本文要介绍的内容,主要是来了解并学习Android UI设计,具体关于Android UI设计内容的详解来看本文。文章Android UI设计内容的实现主要是以代码来详解,内容不多。

- 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" />
小结:Android UI设计模式实例代码的内容介绍完了,希望通过Android UI设计内容的学习能对你有所帮助。
分享名称:AndroidUI设计模式实例代码
分享URL:http://www.jxjierui.cn/article/dphhesd.html


咨询
建站咨询
