Моя проблема в том, что я хочу получить что-то вроде этого:
Вот иллюзия
![enter image description here](https://i.stack.imgur.com/nbFPD.png)
Итак, янужна панель инструментов вверху, затем настраиваемый вид (где я использую холст, чтобы позволить пользователю рисовать объекты - круги и ребра между кругами) и, наконец, макет внизу (с компонентами ImageButton - например, для очистки холстав пользовательском представлении).
Все работает нормально, за исключением того, что я не могу добавить нижний слой (с помощью кнопок ImageButtons), потому что пользовательское представление занимает все доступное пространство.
Мой код:
<?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:orientation="vertical">
<androidx.appcompat.widget.Toolbar
android:id="@+id/bogoToolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#27A9E0"
android:minHeight="45dp"
app:titleTextColor="@android:color/white">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Breadth-First Search Visualization"
android:textColor="#ffffff"
android:textSize="20dp"
android:textStyle="bold"
app:fontFamily="@font/roboto_slab" />
</androidx.appcompat.widget.Toolbar>
<com.globalsoftwaresupport.graph.bfs.BreadthFirstSearchView
android:id="@+id/breadthFirstSearchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="68dp"
android:minHeight="100dp"
android:orientation="horizontal">
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/quiz_icon" />
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/quiz_icon2" />
</LinearLayout>
</LinearLayout>
У вас есть предложения, что я делаю не так? Заранее спасибо