Use a MaterialCarView

This commit is contained in:
Benoit Marty 2022-01-28 18:56:09 +01:00
parent e0ac8ee8b8
commit eff6942f82

View file

@ -104,15 +104,17 @@
tools:visibility="visible" /> tools:visibility="visible" />
<FrameLayout <com.google.android.material.card.MaterialCardView
android:id="@+id/mapViewContainer" android:id="@+id/mapViewContainer"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="6dp" android:layout_marginTop="6dp"
android:visibility="gone" android:visibility="gone"
app:cardCornerRadius="8dp"
app:layout_constraintEnd_toEndOf="@id/bottom_sheet_message_preview_timestamp" app:layout_constraintEnd_toEndOf="@id/bottom_sheet_message_preview_timestamp"
app:layout_constraintStart_toStartOf="@id/bottom_sheet_message_preview_sender" app:layout_constraintStart_toStartOf="@id/bottom_sheet_message_preview_sender"
app:layout_constraintTop_toBottomOf="@id/bottom_sheet_message_preview_sender" app:layout_constraintTop_toBottomOf="@id/bottom_sheet_message_preview_sender"
tools:alpha="0.3"
tools:visibility="visible"> tools:visibility="visible">
<ImageView <ImageView
@ -129,6 +131,6 @@
android:layout_marginBottom="28dp" android:layout_marginBottom="28dp"
android:importantForAccessibility="no" android:importantForAccessibility="no"
android:src="@drawable/bg_map_user_pin" /> android:src="@drawable/bg_map_user_pin" />
</FrameLayout> </com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>