Я только начал использовать Android Studio. Я пытаюсь выровнять кнопки ImageButtons внутри вида прокрутки рядом, но я не могу поместить их рядом, и при этом я не могу изменить их размер с левой стороны. Как мне выровнять их рядом?
Я уже попробовал решение, приведенное в одном из ответов: Выравнивание TextView бок о бок внутри ScrollView внутри линейного макета , но оно не сработало
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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"
tools:context=".StoryIndex">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="match_parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<ScrollView
android:layout_width="fill_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageButton
android:id="@+id/titlee"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@android:color/black"
app:srcCompat="@drawable/alami1" />
<ImageButton
android:id="@+id/imageButton8"
android:layout_width="375dp"
android:layout_height="116dp"
android:background="@android:color/black"
app:srcCompat="@drawable/alami2" />
<ImageButton
android:id="@+id/imageButton9"
android:layout_width="195dp"
android:layout_height="169dp"
app:srcCompat="@drawable/alami3" />
</LinearLayout>
</ScrollView>
</RelativeLayout>
</android.support.constraint.ConstraintLayout>
Я хочу, чтобы кнопки «Изображение» располагались рядом, но они были в строках друг на друге… но это показано так, как показано на рисунке:
Изображение вида дизайна
Благодаря.