|
|
@ -1,54 +1,56 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<android.support.constraint.ConstraintLayout |
|
|
|
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
|
android:id="@+id/emojicompat_container" |
|
|
|
android:id="@+id/emojicompat_container" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="72dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:background="?attr/selectableItemBackground" |
|
|
|
android:background="?attr/selectableItemBackground" |
|
|
|
xmlns:tools="http://schemas.android.com/tools"> |
|
|
|
android:paddingBottom="8dp" |
|
|
|
|
|
|
|
android:paddingTop="8dp"> |
|
|
|
|
|
|
|
|
|
|
|
<!--This is a thumbnail picture--> |
|
|
|
<!--This is a thumbnail picture--> |
|
|
|
<ImageView |
|
|
|
<ImageView |
|
|
|
android:id="@+id/emojicompat_thumb" |
|
|
|
android:id="@+id/emojicompat_thumb" |
|
|
|
android:layout_width="48dp" |
|
|
|
android:layout_width="42dp" |
|
|
|
android:layout_height="48dp" |
|
|
|
android:layout_height="42dp" |
|
|
|
android:padding="4dp" |
|
|
|
|
|
|
|
android:layout_marginStart="16dp" |
|
|
|
android:layout_marginStart="16dp" |
|
|
|
android:layout_marginTop="12dp" |
|
|
|
android:padding="4dp" |
|
|
|
android:layout_marginBottom="12dp" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
|
|
|
|
app:srcCompat="@drawable/ic_emoji_24dp" /> |
|
|
|
app:srcCompat="@drawable/ic_emoji_24dp" /> |
|
|
|
|
|
|
|
|
|
|
|
<!--This is the font's name--> |
|
|
|
<!--This is the font's name--> |
|
|
|
<TextView |
|
|
|
<TextView |
|
|
|
android:id="@+id/emojicompat_name" |
|
|
|
android:id="@+id/emojicompat_name" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_marginStart="72dp" |
|
|
|
android:layout_marginEnd="72dp" |
|
|
|
android:layout_marginTop="8dp" |
|
|
|
android:layout_marginStart="12dp" |
|
|
|
tools:text="@string/system_default" |
|
|
|
|
|
|
|
android:textColor="?android:textColorPrimary" |
|
|
|
android:textColor="?android:textColorPrimary" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
android:textSize="?attr/status_text_medium" |
|
|
|
android:textSize="?attr/status_text_medium" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
app:layout_constraintBottom_toTopOf="@+id/emojicompat_caption" |
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
app:layout_constraintStart_toEndOf="@+id/emojicompat_thumb" |
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
|
|
|
|
tools:text="@string/system_default" /> |
|
|
|
|
|
|
|
|
|
|
|
<!--A short caption...--> |
|
|
|
<!--A short caption...--> |
|
|
|
<TextView |
|
|
|
<TextView |
|
|
|
android:id="@+id/emojicompat_caption" |
|
|
|
android:id="@+id/emojicompat_caption" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
|
|
|
android:layout_marginEnd="72dp" |
|
|
|
android:layout_marginEnd="72dp" |
|
|
|
tools:text="" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/emojicompat_name" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="@id/emojicompat_name" |
|
|
|
|
|
|
|
app:layout_constraintHorizontal_bias="0" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
android:textColor="?android:textColorSecondary" |
|
|
|
android:textColor="?android:textColorSecondary" |
|
|
|
android:textSize="12sp"/> |
|
|
|
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" /> |
|
|
|
|
|
|
|
|
|
|
|
<!--This progress bar is shown while the font is downloading.--> |
|
|
|
<!--This progress bar is shown while the font is downloading.--> |
|
|
|
<ProgressBar |
|
|
|
<ProgressBar |
|
|
@ -58,61 +60,54 @@ |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_marginEnd="72dp" |
|
|
|
android:layout_marginEnd="72dp" |
|
|
|
android:layout_marginTop="8dp" |
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
|
|
|
android:indeterminate="false" |
|
|
|
|
|
|
|
android:visibility="gone" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintStart_toStartOf="@id/emojicompat_name" |
|
|
|
app:layout_constraintStart_toStartOf="@id/emojicompat_name" |
|
|
|
app:layout_constraintTop_toBottomOf="@id/emojicompat_name" |
|
|
|
app:layout_constraintTop_toBottomOf="@id/emojicompat_name" /> |
|
|
|
android:indeterminate="false" |
|
|
|
|
|
|
|
android:visibility="gone"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--Click on it and the font will be downloaded!--> |
|
|
|
<!--Click on it and the font will be downloaded!--> |
|
|
|
<ImageButton |
|
|
|
<ImageButton |
|
|
|
android:id="@+id/emojicompat_download" |
|
|
|
android:id="@+id/emojicompat_download" |
|
|
|
android:layout_width="48dp" |
|
|
|
android:layout_width="42dp" |
|
|
|
android:layout_height="48dp" |
|
|
|
android:layout_height="42dp" |
|
|
|
android:layout_margin="12dp" |
|
|
|
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
|
|
|
|
|
android:contentDescription="@string/download_fonts" |
|
|
|
|
|
|
|
android:focusable="true" |
|
|
|
|
|
|
|
android:tint="@color/colorPrimary" |
|
|
|
|
|
|
|
android:visibility="gone" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/emojicompat_caption" |
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
app:srcCompat="@drawable/ic_file_download_black_24dp" |
|
|
|
app:srcCompat="@drawable/ic_file_download_black_24dp" /> |
|
|
|
android:tint="@color/colorPrimary" |
|
|
|
|
|
|
|
app:layout_constraintVertical_bias="0.5" |
|
|
|
|
|
|
|
android:focusable="true" |
|
|
|
|
|
|
|
android:contentDescription="@string/download_fonts" |
|
|
|
|
|
|
|
android:visibility="gone"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--TODO: enable this button again--> |
|
|
|
|
|
|
|
<!--You should be able to cancel the download--> |
|
|
|
<!--You should be able to cancel the download--> |
|
|
|
<ImageButton |
|
|
|
<ImageButton |
|
|
|
android:id="@+id/emojicompat_download_cancel" |
|
|
|
android:id="@+id/emojicompat_download_cancel" |
|
|
|
android:layout_width="48dp" |
|
|
|
android:layout_width="42dp" |
|
|
|
android:layout_height="48dp" |
|
|
|
android:layout_height="42dp" |
|
|
|
android:layout_margin="12dp" |
|
|
|
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
|
|
|
|
|
android:contentDescription="@android:string/cancel" |
|
|
|
|
|
|
|
android:focusable="true" |
|
|
|
|
|
|
|
android:tint="@color/colorPrimary" |
|
|
|
|
|
|
|
android:visibility="gone" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/emojicompat_name" |
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
app:srcCompat="@drawable/ic_cancel_black_24dp" |
|
|
|
app:srcCompat="@drawable/ic_cancel_black_24dp" /> |
|
|
|
android:tint="@color/colorPrimary" |
|
|
|
|
|
|
|
app:layout_constraintVertical_bias="0.5" |
|
|
|
|
|
|
|
android:focusable="true" |
|
|
|
|
|
|
|
android:contentDescription="@android:string/cancel" |
|
|
|
|
|
|
|
android:visibility="gone"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--You'll probably want to select an emoji font, don't you?--> |
|
|
|
<!--You'll probably want to select an emoji font, don't you?--> |
|
|
|
<!--RadioButtons have a very strange behavior when it comes to their size. |
|
|
|
<android.support.v7.widget.AppCompatRadioButton |
|
|
|
That's why the width is set to such an unusual value.--> |
|
|
|
|
|
|
|
<RadioButton |
|
|
|
|
|
|
|
android:id="@+id/emojicompat_radio" |
|
|
|
android:id="@+id/emojicompat_radio" |
|
|
|
android:layout_width="52dp" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="72dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:visibility="visible" |
|
|
|
|
|
|
|
app:buttonTint="?attr/compound_button_color" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintStart_toEndOf="@id/emojicompat_name" |
|
|
|
app:layout_constraintStart_toEndOf="@id/emojicompat_name" |
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
app:layout_constraintHorizontal_bias="1" |
|
|
|
|
|
|
|
android:visibility="visible" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</android.support.constraint.ConstraintLayout> |
|
|
|
</android.support.constraint.ConstraintLayout> |