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>
  • 相关阅读:
    Q/GDW 10233-2018等国家电网公司电动汽车充电设备相关标准
    TB/T 2628-2020 铁路预制普通钢筋混凝土简支梁
    GB/T 51396-2019 槽式太阳能光热发电站设计标准
    GB/T 17467-2020 高压/低压预装式变电站
    GB/T 3906-2020 3.6 kV~40.5 kV交流金属封闭开关设备和控制设备
    GB 51388-2020 镍冶炼厂工艺设计标准
    GB/T 51409-2020 数据中心综合监控系统工程技术标准
    linux-09(查看文件命令tail)
    jmeter-02
    2019-3-19记随手记面试
  • 原文地址:https://www.cnblogs.com/newlist/p/3312420.html
Copyright © 2011-2022 走看看