1
I want to adjust the buttons so that they are underneath each other, but when I try to put, they are wide and not like a normal button. See:
The xml is like this:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
android:onClick="Propaganda"
android:text="@string/propaganda" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
android:onClick="BotaoNavegacao"
android:text="@string/navega_o" />
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
android:onClick="LoginActivity"
android:text="@string/login" />
</LinearLayout>
How can I adjust them?
They are one below the other in the photo you sent. How should they be?
– Pablo Almeida
You’re right Pablo. I expressed myself badly. I made an adjustment in my Post. In fact they get wide and not like a normal button.
– user24136