How do I get an imageView and textview to both fill the layout when Im setting the imageView bitmap programmatically? : What I want is for `qrcodetext` to fit and display all the text in `qrcode_layout` and have `qrimageView` to fill the rest of `qrcode_layout`? But my layout below has the entire `qrimageView` cover `qrcode_layout`.


    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical" android:layout_width="match_parent"
        android:layout_height="match_parent">
    
        <LinearLayout
            android:layout_height="match_parent"
            android:layout_width="match_parent"
            android:orientation="vertical"
            android:id="@+id/qrcodelayout">
    
            <LinearLayout
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:orientation="vertical">
                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:id="@+id/qrimageView"
                    android:layout_gravity="center_horizontal"
                    android:layout_marginTop="8dp" />
    
            </LinearLayout>
    
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/qrcodetext"
                android:gravity="center"
                android:layout_gravity="center_horizontal"
                android:layout_marginTop="4dp" />
    
        </LinearLayout>
    
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>
        </LinearLayout>
    
    </RelativeLayout>