M
M
MaxFB2017-09-13 20:27:17
Android
MaxFB, 2017-09-13 20:27:17

Why are 3 more buttons not being created? (The second ll is not being read for some reason)?

<?xml version= "1.0" encoding= "utf-8" ?>
<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"
    android:weightSum="1">




    <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="horizontal"
        android:weightSum="1">


        <Button
            android:id="@+id/button"
            android:layout_width="119dp"
            android:layout_height="wrap_content"
            android:text="Button" />

        <Button
            android:id="@+id/button2"
            android:layout_width="118dp"
            android:layout_height="wrap_content"
            android:text="Button" />
        <Button
            android:id="@+id/button3"
            android:layout_width="118dp"
            android:layout_height="wrap_content"
            android:text="Button" />

    </LinearLayout>

    <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"
        android:weightSum="1">

        <Button
            android:id="@+id/button4"
            android:layout_width="119dp"
            android:layout_height="wrap_content"
            android:text="Button" />

        <Button
            android:id="@+id/button5"
            android:layout_width="118dp"
            android:layout_height="wrap_content"
            android:text="Button" />
        <Button
            android:id="@+id/button6"
            android:layout_width="118dp"
            android:layout_height="wrap_content"
            android:text="@string/button"/>
    </LinearLayout>

</LinearLayout>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Dergachov, 2017-09-13
@MaxFB

android:layout_height="match_parent"
In ll, you need to replace it with wrap_content

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question