mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-02 22:53:09 +01:00
Implement new attachment keyboard.
Such beauty. Such grace.
This commit is contained in:
committed by
Alex Hart
parent
9f7b2e2cfd
commit
109d67956f
38
app/src/main/res/layout/attachment_keyboard_button_item.xml
Normal file
38
app/src/main/res/layout/attachment_keyboard_button_item.xml
Normal 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>
|
||||
Reference in New Issue
Block a user