Actionbar正在被relativelayout android重叠

时间:2014-01-21 13:19:10

标签: android

我在android中使用相对布局。我的应用程序的操作栏被相对布局隐藏/重叠50%。我搜索了很多,但没有得到任何答案。

以下是布局代码:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#11FFFFFF"
tools:context=".TestMainActivity" >

<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_alignParentLeft="true"
    android:layout_below="@+id/arrow_up"
    android:background="@android:color/white"
    android:orientation="vertical" >

    <TextView
        android:id="@+id/pop_title_text"
        android:layout_width="match_parent"
        android:layout_height="35dp"
        android:background="@drawable/title_background"
        android:gravity="center"
        android:textColor="@color/title_font_color"
        android:textSize="16sp" >
    </TextView>

    <TextView
        android:id="@android:id/empty"
        android:layout_width="match_parent"
        android:layout_height="0dip"
        android:layout_weight="1.0"
        android:gravity="center_horizontal"
        android:text="@string/no_record"
        android:textStyle="bold" />

    <ListView
        android:id="@android:id/list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:divider="@null"
        android:dividerHeight="0dp" >
    </ListView>
</LinearLayout>

<ImageView
    android:id="@+id/arrow_up"
    android:layout_width="16px"
    android:layout_height="16px"
    android:layout_alignParentRight="true"
    android:layout_alignParentTop="true"
    android:src="@drawable/quickaction_arrow_up" />

0 个答案:

没有答案