次のコードをご覧ください
<LinearLayout 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:orientation="vertical"
     >
    <LinearLayout 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        >
    <TextView 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/firstNumber"
        />
    <EditText 
        android:layout_width="match_parent"
        android:layout_height="wrap_content" 
        />
    </LinearLayout>
</LinearLayout>
ここでは、テキストボックスのサイズ(幅)が非常に小さいです。残りの幅に合わせて設定しようとしていますが、ご覧のとおり失敗します。私も使っandroid:weight=1たことがあります。テキストボックスの幅を残りの幅に設定するにはどうすればよいですか?