Implement new attachment keyboard.

Such beauty. Such grace.
This commit is contained in:
Greyson Parrelli
2020-01-29 22:13:44 -05:00
committed by Alex Hart
parent 9f7b2e2cfd
commit 109d67956f
35 changed files with 866 additions and 371 deletions

View File

@@ -0,0 +1,38 @@
<?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="wrap_content"
android:layout_height="80dp"
android:layout_marginEnd="6dp"
android:minWidth="80dp"
android:padding="8dp"
android:background="?attachment_keyboard_button_background">
<ImageView
android:id="@+id/attachment_button_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:tint="?attachment_keyboard_button_foreground"
app:layout_constraintBottom_toTopOf="@id/attachment_button_title"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
tools:src="@drawable/ic_sticker_32"/>
<TextView
android:id="@+id/attachment_button_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/Signal.Text.Preview"
android:fontFamily="sans-serif-medium"
android:gravity="center"
android:textColor="?attachment_keyboard_button_foreground"
app:layout_constraintTop_toBottomOf="@id/attachment_button_image"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
tools:text="Web Shooter"/>
</androidx.constraintlayout.widget.ConstraintLayout>