|
|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
@ -13,132 +13,139 @@
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginHorizontal="20dp"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingTop="20dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/bottom_sheet_title"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/template"
|
|
|
|
|
android:textSize="25sp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/bottom_sheet_subtitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/create_template"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/bottom_sheet_title" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/template_create"
|
|
|
|
|
style="@style/Widget.Material3.Button.ElevatedButton.Icon"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:autoLink="all"
|
|
|
|
|
android:text="@string/create"
|
|
|
|
|
app:icon="@drawable/ic_check"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:padding="15dp">
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/title"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/title"
|
|
|
|
|
style="@style/Widget.Material3.TextInputLayout.FilledBox">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:inputType="text"
|
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/content"
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
|
app:endIconMode="custom"
|
|
|
|
|
app:endIconDrawable="@drawable/ic_clipboard"
|
|
|
|
|
android:hint="@string/command"
|
|
|
|
|
style="@style/Widget.Material3.TextInputLayout.FilledBox">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:maxLines="4"
|
|
|
|
|
android:inputType="textMultiLine"
|
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
android:layout_marginHorizontal="20dp"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingTop="20dp">
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_marginVertical="10dp"
|
|
|
|
|
style="@style/Divider.Horizontal"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/bottom_sheet_title"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/template"
|
|
|
|
|
android:textSize="25sp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/bottom_sheet_subtitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
|
android:text="@string/shortcuts"
|
|
|
|
|
android:textSize="15sp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
android:text="@string/create_template"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/bottom_sheet_title" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/edit_shortcuts"
|
|
|
|
|
style="@style/Widget.Material3.Button.TextButton.Icon"
|
|
|
|
|
android:id="@+id/template_create"
|
|
|
|
|
style="@style/Widget.Material3.Button.ElevatedButton.Icon"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:autoLink="all"
|
|
|
|
|
android:text="@string/edit"
|
|
|
|
|
app:icon="@drawable/ic_edit"
|
|
|
|
|
android:text="@string/create"
|
|
|
|
|
app:icon="@drawable/ic_check"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
|
|
|
android:id="@+id/shortcutsChipGroup"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:singleLine="false">
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:padding="15dp">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/title"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/title"
|
|
|
|
|
style="@style/Widget.Material3.TextInputLayout.FilledBox">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:inputType="text"
|
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/content"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
|
app:endIconMode="custom"
|
|
|
|
|
app:endIconDrawable="@drawable/ic_clipboard"
|
|
|
|
|
android:hint="@string/command"
|
|
|
|
|
style="@style/Widget.Material3.TextInputLayout.FilledBox">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:maxLines="4"
|
|
|
|
|
android:inputType="textMultiLine"
|
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_marginVertical="10dp"
|
|
|
|
|
style="@style/Divider.Horizontal"/>
|
|
|
|
|
|
|
|
|
|
<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:gravity="center"
|
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
|
android:text="@string/shortcuts"
|
|
|
|
|
android:textSize="15sp"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/edit_shortcuts"
|
|
|
|
|
style="@style/Widget.Material3.Button.TextButton.Icon"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:autoLink="all"
|
|
|
|
|
android:text="@string/edit"
|
|
|
|
|
app:icon="@drawable/ic_edit"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
|
|
|
android:id="@+id/shortcutsChipGroup"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:singleLine="false">
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.chip.ChipGroup>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.chip.ChipGroup>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|