<?xml version="1.0" encoding="utf-8"?><TabHost xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:bar="http://schemas.android.com/apk/res/com.talented"    android:id="@+id/tabhost"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    android:background="#efefef"    android:orientation="vertical" >    <RelativeLayout        android:layout_width="fill_parent"        android:layout_height="fill_parent" >        <com.talented.actionbar.ActionBar            android:id="@id/gd_action_bar"            android:layout_width="fill_parent"            android:layout_height="@dimen/gd_action_bar_height"            android:background="?attr/gdActionBarBackground"            bar:title="@string/app_name"            bar:type="normal" /><!--RadioGroup中同一时刻只有一个RadioButton被选中-->        <RadioGroup            android:id="@+id/numbers_radio"            android:layout_width="fill_parent"            android:layout_height="wrap_content"            android:layout_alignParentBottom="true"            android:background="@drawable/tab_bg"            android:orientation="horizontal" >            <RadioButton                android:id="@+id/action_radio_1"                android:layout_width="0dp"                android:layout_height="wrap_content"                android:layout_weight="1"                android:background="@drawable/blk_find_tab"                android:button="@null"                android:checked="true"                android:drawableTop="@drawable/talented_tab_search"                android:drawingCacheQuality="high"                android:gravity="center"                android:paddingBottom="3dp"                android:paddingTop="3dp"                android:text="@string/app_tab_name_1"                android:textColor="@color/search_colorbg"                android:textSize="12.0sp"                android:textStyle="normal" />            <RadioButton                android:id="@+id/action_radio_2"                android:layout_width="0dp"                android:layout_height="wrap_content"                android:layout_weight="1"                android:background="@drawable/blk_find_tab"                android:button="@null"                android:checked="false"                android:drawableTop="@drawable/talented_tab_person"                android:drawingCacheQuality="high"                android:gravity="center"                android:paddingBottom="3dp"                android:paddingTop="3dp"                android:text="@string/app_tab_name_2"                android:textColor="@color/search_colorbg"                android:textSize="12.0sp"                android:textStyle="normal" />                                    <RadioButton                android:id="@+id/action_radio_3"                android:layout_width="0dp"                android:layout_height="wrap_content"                android:layout_weight="1"                android:background="@drawable/blk_find_tab"                android:button="@null"                android:checked="false"                android:drawableTop="@drawable/talented_tab_storage"                android:drawingCacheQuality="high"                android:gravity="center"                android:paddingBottom="3dp"                android:paddingTop="3dp"                android:text="@string/app_tab_name_3"                android:textColor="@color/search_colorbg"                android:textSize="12.0sp"                android:textStyle="normal" />            <RadioButton                android:id="@+id/action_radio_4"                android:layout_width="0dp"                android:layout_height="wrap_content"                android:layout_weight="1"                android:background="@drawable/blk_find_tab"                android:button="@null"                android:checked="false"                android:drawableTop="@drawable/talented_tab_access"                android:drawingCacheQuality="high"                android:gravity="center"                android:paddingBottom="3dp"                android:paddingTop="3dp"                android:text="@string/app_tab_name_4"                android:textColor="@color/search_colorbg"                android:textSize="12.0sp"                android:textStyle="normal" />        </RadioGroup>        <LinearLayout            android:layout_width="fill_parent"            android:layout_height="fill_parent"            android:layout_above="@+id/numbers_radio"            android:layout_below="@id/gd_action_bar"            android:orientation="vertical" >            <FrameLayout                android:id="@android:id/tabcontent"                android:layout_width="fill_parent"                android:layout_height="0dp"                android:layout_weight="1" >            </FrameLayout>            <TabWidget                android:id="@android:id/tabs"                android:layout_width="fill_parent"                android:layout_height="wrap_content"                android:visibility="gone" >            </TabWidget>        </LinearLayout>        <ImageView            android:layout_width="fill_parent"            android:layout_height="wrap_content"            android:layout_above="@+id/numbers_radio"            android:background="@drawable/search_shadow_up" />        <ImageView            android:layout_width="fill_parent"            android:layout_height="wrap_content"            android:layout_below="@id/gd_action_bar"            android:background="@drawable/title_bar_shadow" />    </RelativeLayout></TabHost>

更多相关文章

  1. [Android] 任意时刻从子线程切换到主线程的实现原理及加强版
  2. [Android] 任意时刻从子线程切换到主线程的实现
  3. Android任意时刻、任意代码处全屏
  4. android实现一天24小时刻度尺
  5. Android航班时刻查询
  6. 福利时刻 | 盖楼送《高可用可伸缩微服务架构》签名版
  7. 一不小心又把应用发挂了,复盘一下这十几分钟的黑暗时刻

随机推荐

  1. Android中的缓存处理
  2. Android(安卓)重要数据目录
  3. Android如何判断当前网络类型(联网,2g,3g,
  4. Socket 通信原理(Android客户端和服务器
  5. 【新手入门系列】导入别人的项目到Androi
  6. android使用webview预览png,pdf,doc,xls,
  7. Android自定义View的官方套路
  8. Android Glide加载图片时转换为圆形、圆
  9. PC客户端与Android服务端的Socket同步通
  10. Android增加一个物理按键检测步骤