parent
cf3295749b
commit
5c8464fb92
@ -0,0 +1,106 @@ |
||||
<?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:sparkbutton="http://schemas.android.com/apk/res-auto" |
||||
xmlns:tools="http://schemas.android.com/tools" |
||||
android:id="@+id/status_container" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:clipChildren="false" |
||||
android:clipToPadding="false" |
||||
android:focusable="true" |
||||
android:paddingLeft="14dp" |
||||
android:paddingRight="14dp" |
||||
android:paddingBottom="8dp"> |
||||
|
||||
<ImageView |
||||
android:id="@+id/status_avatar" |
||||
android:layout_width="48dp" |
||||
android:layout_height="48dp" |
||||
android:layout_marginStart="4dp" |
||||
android:layout_marginTop="8dp" |
||||
android:contentDescription="@string/action_view_profile" |
||||
android:importantForAccessibility="no" |
||||
android:scaleType="centerCrop" |
||||
app:layout_constraintStart_toStartOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:src="@drawable/avatar_default" /> |
||||
|
||||
<ImageView |
||||
android:id="@+id/status_avatar_inset" |
||||
android:layout_width="24dp" |
||||
android:layout_height="24dp" |
||||
android:contentDescription="@null" |
||||
android:importantForAccessibility="no" |
||||
android:visibility="gone" |
||||
app:layout_constraintBottom_toBottomOf="@id/status_avatar" |
||||
app:layout_constraintEnd_toEndOf="@id/status_avatar" |
||||
tools:src="@drawable/ic_bot_24dp" |
||||
tools:visibility="visible" /> |
||||
|
||||
<androidx.emoji.widget.EmojiTextView |
||||
android:id="@+id/status_display_name" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginStart="14dp" |
||||
android:layout_marginTop="10dp" |
||||
android:ellipsize="end" |
||||
android:importantForAccessibility="no" |
||||
android:maxLines="1" |
||||
android:paddingEnd="@dimen/status_display_name_padding_end" |
||||
android:textColor="?android:textColorPrimary" |
||||
android:textSize="?attr/status_text_medium" |
||||
android:textStyle="normal|bold" |
||||
app:layout_constrainedWidth="true" |
||||
app:layout_constraintEnd_toStartOf="@id/status_timestamp_info" |
||||
app:layout_constraintHorizontal_bias="0" |
||||
app:layout_constraintStart_toEndOf="@id/status_avatar" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:text="Ente r the void you foooooo" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/status_username" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:ellipsize="end" |
||||
android:importantForAccessibility="no" |
||||
android:maxLines="1" |
||||
android:textColor="?android:textColorSecondary" |
||||
android:textSize="?attr/status_text_medium" |
||||
app:layout_constraintEnd_toStartOf="@id/status_timestamp_info" |
||||
app:layout_constraintStart_toEndOf="@id/status_display_name" |
||||
app:layout_constraintBaseline_toBaselineOf="@id/status_display_name" |
||||
tools:text="\@Entenhausen@birbsarecooooooooooool.site" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/status_timestamp_info" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginStart="4dp" |
||||
android:importantForAccessibility="no" |
||||
android:textColor="?android:textColorSecondary" |
||||
android:textSize="?attr/status_text_medium" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintBaseline_toBaselineOf="@id/status_display_name" |
||||
tools:text="13:37" /> |
||||
|
||||
<androidx.emoji.widget.EmojiTextView |
||||
android:id="@+id/status_content" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="8dp" |
||||
android:focusable="true" |
||||
android:hyphenationFrequency="full" |
||||
android:importantForAccessibility="no" |
||||
android:lineSpacingMultiplier="1.1" |
||||
android:textColor="?android:textColorPrimary" |
||||
android:textSize="?attr/status_text_medium" |
||||
android:maxLines="1" |
||||
android:ellipsize="end" |
||||
app:layout_constraintEnd_toEndOf="parent" |
||||
app:layout_constraintStart_toStartOf="@id/status_display_name" |
||||
app:layout_constraintTop_toBottomOf="@id/status_display_name" |
||||
tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." /> |
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
Loading…
Reference in new issue