2018-05-10 19:16:56 +10:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-06-26 00:23:43 +10:00
|
|
|
<android.support.constraint.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"
|
2018-06-26 00:23:43 +10:00
|
|
|
android:paddingBottom="8dp"
|
|
|
|
android:paddingTop="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"
|
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"
|
2018-06-26 00:23:43 +10:00
|
|
|
app:srcCompat="@drawable/ic_emoji_24dp" />
|
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_marginEnd="72dp"
|
|
|
|
android:layout_marginStart="12dp"
|
2018-05-10 19:16:56 +10:00
|
|
|
android:textColor="?android:textColorPrimary"
|
2018-06-26 00:23:43 +10:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2018-05-10 19:16:56 +10:00
|
|
|
android:textSize="?attr/status_text_medium"
|
2018-06-26 00:23:43 +10:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/emojicompat_caption"
|
|
|
|
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
|
|
|
|
|
|
|
<!--A short caption...-->
|
|
|
|
<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_marginEnd="72dp"
|
|
|
|
android:layout_marginTop="8dp"
|
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"
|
|
|
|
android:tint="@color/colorPrimary"
|
|
|
|
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"
|
|
|
|
android:tint="@color/colorPrimary"
|
|
|
|
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"
|
2018-06-26 00:23:43 +10:00
|
|
|
app:srcCompat="@drawable/ic_cancel_black_24dp" />
|
2018-05-10 19:16:56 +10:00
|
|
|
|
|
|
|
<!--You'll probably want to select an emoji font, don't you?-->
|
2018-06-26 00:23:43 +10:00
|
|
|
<android.support.v7.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"
|
|
|
|
app:buttonTint="?attr/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-06-26 00:23:43 +10:00
|
|
|
</android.support.constraint.ConstraintLayout>
|