1
I’m having the following difficulty, after searching exhaustively on Google and not finding an answer to this my doubt, I decided to ask here, I would like to place a Textview next to a Button, so that Textview uses 2/3 of the useful area and Button the other third remaining.
Currently the code is 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>