导航--XML文件

odota-status="done"><?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent">
    <FrameLayout  android:id="@+id/containerMain" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@+id/rgMainBottomNav">

    </FrameLayout>

    <RadioGroup  android:id="@+id/rgMainBottomNav" android:layout_width="match_parent" android:layout_height="@dimen/dp66" android:layout_alignParentBottom="true" android:orientation="horizontal">
        <RadioButton  style="@style/BottomNavBarOfMain" android:text="一" android:paddingTop="10dp" android:background="@drawable/six_main_nav_btn_sel" android:id="@+id/rbRecodemoduleMain" android:drawabletop="@drawable/six_main_record" />
        <RadioButton  android:text="二" style="@style/BottomNavBarOfMain" android:paddingTop="10dp" android:background="@drawable/six_main_nav_btn_sel" android:drawabletop="@drawable/six_main_team" android:id="@+id/rbTeamModuleMain" />
        <RadioButton  android:text="三" style="@style/BottomNavBarOfMain" android:paddingTop="10dp" android:background="@drawable/six_main_nav_btn_sel" android:drawabletop="@drawable/six_main_find" android:id="@+id/rbFindModuleMain" />
        <RadioButton  android:text="四" style="@style/BottomNavBarOfMain" android:paddingTop="10dp" android:background="@drawable/six_main_nav_btn_sel" android:drawabletop="@drawable/six_main_mine" android:id="@+id/rbmineModuleMain"/>
    </RadioGroup>
</RelativeLayout>

效果

style代码:

<!--nav bar of bottom in main activity -->
    <style name="BottomNavBarOfMain">
        <item name="android:layout_width">0dp</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:button">@null</item>
        <item name="android:layout_weight">1</item>
        <item name="android:gravity">center</item>

    </style>

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念