在android中调整视图大小

在android中调整视图大小,android,android-layout,Android,Android Layout,我正在应用程序中使用滑动菜单 点击设置图标后,我看到以下结果 第一个布局中的内容是换行,而我想隐藏视图的该部分 Xml文件 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="mat

我正在应用程序中使用滑动菜单

点击设置图标后,我看到以下结果

第一个布局中的内容是换行,而我想隐藏视图的该部分

Xml文件

 <RelativeLayout 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"
android:background="@drawable/menu_bg"
tools:context=".PrincipalActivity" >

<include layout="@layout/actionbar_menu" android:id="@+id/actionBarMenu"/>
 //listview for displaying menu
<ListView
    android:id="@+id/listMenu"
    android:layout_below="@+id/actionBarMenu"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:divider="#282828"
    android:dividerHeight="1dip"
    android:background="#3F3F3F"
    android:fadingEdge="none"
    android:listSelector="@drawable/list_selector">

</ListView>

 //this is main layout which is visible first time when application starts
<RelativeLayout
    android:id="@+id/layoutToMove"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_below="@+id/actionBar"
    android:background="#282828">

    <include layout="@layout/actionbar_layout" android:id="@+id/actionBar"/>

    <ImageButton
        android:id="@+id/menuButton"
        android:layout_width="48dp"
        android:layout_height="48dp"
        android:layout_alignBottom="@+id/actionBar"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:onClick="openCloseMenu"
        android:src="@drawable/menu"
        android:background="@android:color/transparent" />
     <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="asdkjasdksajdkasjdkasjdkasdddddddddddddddddddddddddddddd"
        android:textColor="#fff"
        android:layout_centerVertical="true"/>
    <Button
        android:id="@+id/separator"
        android:layout_width="1dp"
        android:layout_height="50dp"
        android:layout_toRightOf="@+id/menuButton"
        android:background="@drawable/custom_button_black" />

</RelativeLayout>

任何形式的帮助都将得到极大的赞赏。它非常好,被许多流行的Android应用程序广泛使用,如Foursquare Rdio、Falcon Pro等