Я пытаюсь поставить два LinearLayout в ScrollView Проект должен быть, как этот enter image description hereБолее LinearLayout подряд внутри ScrollView
И мой код это
<FrameLayout 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"
tools:context="com.example.krusty.project">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="70dp"
android:orientation="vertical"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<EditText
android:layout_width="100dp"
android:layout_height="match_parent"
android:hint="Insert text"
android:inputType="number"
/>
<Button
android:layout_width="36dp"
android:layout_height="match_parent"
android:layout_marginLeft="90dp"
android:text="-"
android:onClick="decrement"
/>
<TextView
android:layout_width="36dp"
android:layout_height="match_parent"
android:paddingTop="15dp"
android:textSize="18sp"
android:textAlignment="center"
android:text="text"/>
<Button
android:layout_width="36dp"
android:layout_height="match_parent"
android:text="+"
android:onClick="increment"
/>
</LinearLayout>
</ScrollView>
Я пробовал с гравитацией и дополнением, но когда я добавляю еще один linearlayout, ничего не отображается Я буду очень благодарен, если вы найдете решение XD - это два дня, когда я нахожусь на нем, но я не могу решить проблему.