I'm having the following difficulty, after searching exhaustively in Google and not finding an answer to my doubt, I decided to ask here, I would like to put a TextView next to a Button, so that TextView uses 2/3 of useful area and the Button the other third remaining.
Currently the code looks like this:
<GridLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:orientation="horizontal"
android:columnCount="3"
>
<TextView
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Não possui uma conta?"
android:background="#000"
android:layout_height="40dp"
android:id="@+id/textView5"
android:layout_columnSpan="2"
android:layout_column="0"
android:gravity="start|center" />
<Button
style="?android:attr/buttonStyleSmall"
android:layout_height="40dp"
android:text="CADASTRE-SE"
android:id="@+id/button"
android:layout_column="2"
android:textStyle="bold"
android:background="#d69312"
android:gravity="center" />
</GridLayout>