2018-05-10 19:16:56 +10:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-12-18 01:25:35 +11:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-05-10 19:16:56 +10:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2018-06-26 00:23:43 +10:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-05-10 19:16:56 +10:00
|
|
|
android:id="@+id/emojicompat_container"
|
|
|
|
android:layout_width="match_parent"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:layout_height="wrap_content"
|
2018-05-10 19:16:56 +10:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2020-12-14 02:32:22 +11:00
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingBottom="8dp">
|
2018-05-10 19:16:56 +10:00
|
|
|
|
|
|
|
<!--This is a thumbnail picture-->
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/emojicompat_thumb"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="42dp"
|
2018-05-10 19:16:56 +10:00
|
|
|
android:layout_marginStart="16dp"
|
2020-12-14 02:32:22 +11:00
|
|
|
android:importantForAccessibility="no"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:padding="4dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2018-05-10 19:16:56 +10:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-12-14 02:32:22 +11:00
|
|
|
app:srcCompat="@drawable/ic_emoji_24dp"
|
|
|
|
app:tint="#0000" /> <!-- unset the preference theme tint -->
|
2018-05-10 19:16:56 +10:00
|
|
|
|
|
|
|
<!--This is the font's name-->
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/emojicompat_name"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:layout_width="0dp"
|
2018-05-10 19:16:56 +10:00
|
|
|
android:layout_height="wrap_content"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:layout_marginStart="12dp"
|
2020-12-14 02:32:22 +11:00
|
|
|
android:layout_marginEnd="72dp"
|
2018-05-10 19:16:56 +10:00
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
2018-06-26 00:23:43 +10:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/emojicompat_caption"
|
2020-12-14 02:32:22 +11:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2018-06-26 00:23:43 +10:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/emojicompat_thumb"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="@string/system_default" />
|
2018-05-10 19:16:56 +10:00
|
|
|
|
2018-12-13 06:28:05 +11:00
|
|
|
<!--A short caption…-->
|
2018-05-10 19:16:56 +10:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/emojicompat_caption"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="72dp"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:textSize="12sp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/emojicompat_name"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/emojicompat_name"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
tools:text="@string/caption_blobmoji" />
|
2018-05-10 19:16:56 +10:00
|
|
|
|
|
|
|
<!--This progress bar is shown while the font is downloading.-->
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/emojicompat_progress"
|
|
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
2020-12-14 02:32:22 +11:00
|
|
|
android:layout_marginEnd="72dp"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:indeterminate="false"
|
|
|
|
android:visibility="gone"
|
2018-05-10 19:16:56 +10:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/emojicompat_name"
|
2018-06-26 00:23:43 +10:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/emojicompat_name" />
|
2018-05-10 19:16:56 +10:00
|
|
|
|
|
|
|
<!--Click on it and the font will be downloaded!-->
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/emojicompat_download"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="42dp"
|
2018-05-10 19:16:56 +10:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:contentDescription="@string/download_fonts"
|
|
|
|
android:focusable="true"
|
2018-12-18 01:25:35 +11:00
|
|
|
android:tint="@color/tusky_blue"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:visibility="gone"
|
2018-05-10 19:16:56 +10:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2018-06-26 00:23:43 +10:00
|
|
|
app:layout_constraintStart_toEndOf="@id/emojicompat_caption"
|
2018-05-10 19:16:56 +10:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2018-06-26 00:23:43 +10:00
|
|
|
app:srcCompat="@drawable/ic_file_download_black_24dp" />
|
2018-05-10 19:16:56 +10:00
|
|
|
|
|
|
|
<!--You should be able to cancel the download-->
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/emojicompat_download_cancel"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="42dp"
|
2018-05-10 19:16:56 +10:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:contentDescription="@android:string/cancel"
|
|
|
|
android:focusable="true"
|
2018-12-18 01:25:35 +11:00
|
|
|
android:tint="@color/tusky_blue"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:visibility="gone"
|
2018-05-10 19:16:56 +10:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2018-06-26 00:23:43 +10:00
|
|
|
app:layout_constraintStart_toEndOf="@id/emojicompat_name"
|
2018-05-10 19:16:56 +10:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-01-31 07:37:28 +11:00
|
|
|
app:srcCompat="@drawable/ic_cancel_24dp" />
|
2018-05-10 19:16:56 +10:00
|
|
|
|
|
|
|
<!--You'll probably want to select an emoji font, don't you?-->
|
2018-12-18 01:25:35 +11:00
|
|
|
<androidx.appcompat.widget.AppCompatRadioButton
|
2018-05-10 19:16:56 +10:00
|
|
|
android:id="@+id/emojicompat_radio"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="visible"
|
2020-01-31 07:37:28 +11:00
|
|
|
app:buttonTint="@color/compound_button_color"
|
2018-05-10 19:16:56 +10:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/emojicompat_name"
|
2018-06-26 00:23:43 +10:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2018-05-10 19:16:56 +10:00
|
|
|
|
2018-12-18 01:25:35 +11:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|