202 lines
8.1 KiB
XML
202 lines
8.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.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="wrap_content"
|
|
android:background="#000000"
|
|
android:padding="16dp">
|
|
|
|
<View
|
|
android:id="@+id/dragHandle"
|
|
android:layout_width="170dp"
|
|
android:layout_height="5dp"
|
|
android:background="#979797"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/closeButton"
|
|
android:layout_width="30dp"
|
|
android:layout_height="27dp"
|
|
android:backgroundTint="#000000"
|
|
app:srcCompat="@android:drawable/ic_menu_close_clear_cancel"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/tabs"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="28dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginBottom="2dp"
|
|
app:layout_constraintTop_toBottomOf="@id/dragHandle"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/stylesTab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_vertical"
|
|
android:text="Style"
|
|
android:textAllCaps="false"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@android:color/white"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:drawableStart="@drawable/ic_bubble"
|
|
android:drawablePadding="6dp"
|
|
android:drawableTint="@android:color/white"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/optionsTab"
|
|
app:layout_constraintHorizontal_chainStyle="packed" />
|
|
|
|
<TextView
|
|
android:id="@+id/optionsTab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_vertical"
|
|
android:text="Options"
|
|
android:textAllCaps="false"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:textColor="#888888"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:drawableStart="@drawable/ic_sliders"
|
|
android:drawablePadding="2dp"
|
|
android:drawableTint="#888888"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/stylesTab"
|
|
app:layout_constraintEnd_toStartOf="@id/overlaysTab" />
|
|
|
|
<TextView
|
|
android:id="@+id/overlaysTab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_vertical"
|
|
android:text="Overlays"
|
|
android:textAllCaps="false"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:textColor="#888888"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:layout_marginStart="8dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:drawableStart="@drawable/ic_stack"
|
|
android:drawablePadding="4dp"
|
|
android:drawableTint="#888888"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/optionsTab"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/tabContent"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
app:layout_constraintTop_toBottomOf="@id/tabs"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent" >
|
|
|
|
<!-- Styles tab -->
|
|
|
|
<LinearLayout
|
|
android:id="@+id/styles"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<HorizontalScrollView
|
|
android:id="@+id/stylesScrollView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="2dp"
|
|
android:fillViewport="false">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/stylesLayout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" />
|
|
|
|
</HorizontalScrollView>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Options tab -->
|
|
<ScrollView
|
|
android:id="@+id/options"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/optionsLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Sources"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
android:layout_marginStart="12dp" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/sourcesLayout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical" />
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
<!-- Overlays tab -->
|
|
<ScrollView
|
|
android:id="@+id/overlays"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/overlaysLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical" >
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</FrameLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |