レイアウトがあり、コンポーネントが画面の残りの部分を埋めるようにします(ウェイトを使用)。リストビューは完全に機能します。
最後の2つのボタンは、意図したとおりに機能しますが、「ネストされたウェイトはパフォーマンスに悪い」という警告が表示されます。
リストビューに重みパラメータをすでに使用しているので、問題だと思います。リストビューを削除すると、警告が消えてしまうからです。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ListView
android:id="@+id/listMessages_messages"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_marginBottom="5dip"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:layout_marginTop="10dip"
android:layout_weight="1"
android:background="#000000" >
</ListView>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Button
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="50"
android:visibility="invisible" />
<Button
android:id="@+id/btnNewConversation_message"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginRight="5dip"
android:layout_weight="50"
android:onClick="newConversation"
android:text="@string/NewConversation" />
</LinearLayout>
</LinearLayout>