今天在开发的时候需要在导航栏和Fragment之间加一条线,结果死活布局文件不显示,后来又行了,已经忘了之前的布局文件怎么写的了,反正这个布局文件是可以的
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/layout_home_activity_root"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.jiawabang.ui.activity.HomeActivity">
<!--<include
layout="@layout/fragment_home"
android:layout_width="match_parent"
android:layout_height="match_parent"/>-->
<FrameLayout
android:id="@+id/layout_home_activity_root_frag"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/view">
</FrameLayout>
<ImageView
android:id="@+id/view"
android:layout_width="match_parent"
android:layout_height="3dp"
android:layout_above="@+id/rg_navi"
android:background="@color/huise2"/>
<RadioGroup
android:id="@+id/rg_navi"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_above="@+id/ll_tv"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rb_navi_shouye"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:background="@drawable/shouye1__selector"
android:button="@null"/>
<RadioButton
android:id="@+id/rb_navi_qiangdan"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:background="@drawable/qiangdan1__selector"
android:button="@null"/>
<RadioButton
android:id="@+id/rb_navi_dingdan"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:background="@drawable/dingdan1_selector"
android:button="@null"/>
<RadioButton
android:id="@+id/rb_navi_gerenxinxi"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:background="@drawable/gerenzhongxin1__selector"
android:button="@null"/>
</RadioGroup>
<LinearLayout
android:id="@+id/ll_tv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="2dp"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="@string/shouye"/>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="@string/jiedan"/>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="@string/dingdan"/>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="@string/gerenzhongxin"/>
</LinearLayout>
</RelativeLayout>