如何在Android应用程序中控制页眉高度?

如何在Android应用程序中控制页眉高度?,android,android-layout,Android,Android Layout,我正在移植一个旧的应用程序。在应用程序中,我有一个非标准的标题导航,上面有图像和文本 图片过去是方形的,但我有办法通过限制页眉的高度使它们成为矩形 我不知道该怎么做。我应该在哪里有这样的设置,它应该是什么样子 这是我的头文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wr

我正在移植一个旧的应用程序。在应用程序中,我有一个非标准的标题导航,上面有图像和文本

图片过去是方形的,但我有办法通过限制页眉的高度使它们成为矩形

我不知道该怎么做。我应该在哪里有这样的设置,它应该是什么样子

这是我的头文件

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" 
android:layout_height="wrap_content"
 android:orientation="horizontal"
>

 <Button android:id="@+id/home_header"
  android:layout_width="0dp" 
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:textColor="@color/white"
  android:text="Home"
  android:background="@drawable/ic_menu_not"
  android:textSize="11dp"
/> 



 <Button android:id="@+id/learn_header"
  android:layout_width="0dp" 
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:text="Learn"
  android:textColor="@color/white"
  android:textSize="11dp"
  android:background="@drawable/ic_menu_not"
  android:layout_toRightOf="@+id/businesses_header"
 />   


<Button android:id="@+id/questions_header"
 android:layout_width="0dp" 
 android:layout_height="wrap_content"
 android:textColor="@color/white"
 android:layout_weight="1"
 android:text="Plans"
 android:textSize="11dp"
   android:background="@drawable/ic_menu_not"
android:layout_toRightOf="@+id/learn_header"  />  



 <Button android:id="@+id/extra_help_header"
  android:layout_width="0dp" 
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:textColor="@color/white"
  android:text="More Help"
  android:textSize="11dp"
  android:background="@drawable/ic_menu_not"
  android:layout_toRightOf="@+id/questions_header"
 />   

</LinearLayout>

我在如下屏幕中包括该标题:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="#1BB5E0"
        >
<include android:id="@+id/header"
         layout="@layout/header"
         android:layout_height="wrap_content"
         android:layout_width="fill_parent"/>  


如何将收割台的高度降低50%左右

你能澄清一下你所说的“非标准标题导航”是什么意思吗@TimCastelijns我只是说我认为新的应用程序有一种不同/更好的方式来处理这类事情……至少我被告知:)什么是“这类事情”?你能给我看一张你想要的照片吗mean@TimCastelijns我只需要弄清楚如何限制收割台的高度。