Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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:map="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/activity_vertical_margin">
<TextView
android:id="@+id/text_gchat_map_date_me"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/activity_vertical_margin_x2"
android:background="@drawable/group_chat_date_background"
android:paddingStart="@dimen/date_horizontal_padding"
android:paddingTop="@dimen/date_vertical_padding"
android:paddingEnd="@dimen/date_horizontal_padding"
android:paddingBottom="@dimen/date_vertical_padding"
android:text="@string/date_placeholder"
android:textColor="@color/groupChatDateText"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.cardview.widget.CardView
android:id="@+id/card_gchat_map_me"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:background="@drawable/group_chat_file_background"
app:cardCornerRadius="@dimen/card_corners"
app:cardElevation="@dimen/card_elevation"
app:cardPreventCornerOverlap="false"
app:cardUseCompatPadding="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/text_gchat_map_date_me">
<com.google.android.gms.maps.MapView
android:id="@+id/map_gchat_me"
android:layout_width="@dimen/thumbnail_width"
android:layout_height="@dimen/thumbnail_height"
map:liteMode="true"
map:mapType="none" />
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/text_gchat_map_read_me"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/message_count_placeholder"
android:textColor="@color/groupChatReadReceiptOther"
android:textSize="@dimen/text_message_date_size"
app:layout_constraintBottom_toTopOf="@+id/text_gchat_map_timestamp_me"
app:layout_constraintEnd_toStartOf="@id/card_gchat_map_me" />
<TextView
android:id="@+id/text_gchat_map_timestamp_me"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/message_time_placeholder"
android:textColor="@color/groupChatDateBackground"
android:textSize="@dimen/text_message_date_size"
app:layout_constraintBottom_toBottomOf="@+id/card_gchat_map_me"
app:layout_constraintEnd_toStartOf="@+id/card_gchat_map_me" />
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.