mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Creating layout for the new message item
This commit is contained in:
parent
2a201b3c46
commit
a1fb85dcdb
2 changed files with 67 additions and 0 deletions
|
@ -0,0 +1,66 @@
|
|||
<?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:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<!-- Size will be overrode -->
|
||||
<!-- TODO use the correct image -->
|
||||
<ImageView
|
||||
android:id="@+id/locationLiveStartedMap"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="200dp"
|
||||
android:contentDescription="@string/a11y_static_map_image"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@tools:sample/backgrounds/scenic"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<View
|
||||
android:id="@+id/locationLiveStartedBannerBackground"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:alpha="0.85"
|
||||
android:background="?colorSurface"
|
||||
app:layout_constraintBottom_toBottomOf="@id/locationLiveStartedMap"
|
||||
app:layout_constraintEnd_toEndOf="@id/locationLiveStartedMap"
|
||||
app:layout_constraintStart_toStartOf="@id/locationLiveStartedMap" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/locationLiveStartedIcon"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginHorizontal="8dp"
|
||||
android:background="@drawable/circle"
|
||||
android:backgroundTint="?vctr_content_quaternary"
|
||||
android:padding="3dp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/locationLiveStartedBannerBackground"
|
||||
app:layout_constraintStart_toStartOf="@id/locationLiveStartedBannerBackground"
|
||||
app:layout_constraintTop_toTopOf="@id/locationLiveStartedBannerBackground"
|
||||
app:srcCompat="@drawable/ic_attachment_location_live_white"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/locationLiveStartedTitle"
|
||||
style="@style/Widget.Vector.TextView.Caption"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="8dp"
|
||||
android:text="@string/location_share_live_started"
|
||||
android:textColor="?vctr_content_tertiary"
|
||||
app:layout_constraintBottom_toBottomOf="@id/locationLiveStartedBannerBackground"
|
||||
app:layout_constraintStart_toEndOf="@id/locationLiveStartedIcon"
|
||||
app:layout_constraintTop_toTopOf="@id/locationLiveStartedBannerBackground" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/locationLiveStartedLoader"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:indeterminateTint="?vctr_content_quaternary"
|
||||
app:layout_constraintBottom_toTopOf="@id/locationLiveStartedBannerBackground"
|
||||
app:layout_constraintEnd_toEndOf="@id/locationLiveStartedMap"
|
||||
app:layout_constraintStart_toStartOf="@id/locationLiveStartedMap"
|
||||
app:layout_constraintTop_toTopOf="@id/locationLiveStartedMap" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -2998,6 +2998,7 @@
|
|||
<string name="labs_render_locations_in_timeline">Render user locations in the timeline</string>
|
||||
<string name="location_timeline_failed_to_load_map">Failed to load map</string>
|
||||
<string name="location_share_live_enabled">Live location enabled</string>
|
||||
<string name="location_share_live_started">Loading live location…</string>
|
||||
<string name="location_share_live_stop">Stop</string>
|
||||
<string name="live_location_sharing_notification_title">${app_name} Live Location</string>
|
||||
<string name="live_location_sharing_notification_description">Location sharing is in progress</string>
|
||||
|
|
Loading…
Reference in a new issue