zoukankan      html  css  js  c++  java
  • android笔记---主界面(一)

    <?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>
  • 相关阅读:
    代理类和装饰类的区别
    spring mvc 处理映射的几种方式
    如何深入浅出的理解跳转方式:重定向和请求转发
    springMVC拦截配置
    ※版本管理※=>☆SVN工具=>※解决地域麻烦※№→搭建自己的网络SVN (SourceForge 免费) [转]
    权力社会? 金钱社会? 透过现象看本质-让权力和金钱的力量沿着制度的河道流淌,才是社会稳定的基石
    自己封装的CMusic类 【转】
    VC++中MCI播放音频文件 【转】
    DevExpress.XtraGrid 【转】
    C# Process.Start()方法详解 [转]
  • 原文地址:https://www.cnblogs.com/newlist/p/3312420.html
Copyright © 2011-2022 走看看