Signal-Android/app/src/main/res/layout/view_once_message_activity.xml

51 lines
1.8 KiB
XML
Raw Normal View History

2019-06-11 02:18:45 -04:00
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
2020-06-02 16:05:16 -03:00
xmlns:tools="http://schemas.android.com/tools"
2019-06-11 02:18:45 -04:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/core_black">
<ImageView
2019-07-31 19:33:56 -04:00
android:id="@+id/view_once_image"
2019-06-11 02:18:45 -04:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-06-02 16:05:16 -03:00
android:scaleType="fitCenter" />
2019-06-11 02:18:45 -04:00
2019-09-27 10:10:30 -03:00
<org.thoughtcrime.securesms.video.VideoPlayer
android:id="@+id/view_once_video"
android:layout_width="match_parent"
2020-06-02 16:05:16 -03:00
android:layout_height="match_parent"
android:visibility="gone" />
2019-09-27 10:10:30 -03:00
2020-01-07 21:44:41 -05:00
<!-- Need this wrapper layout to get the ripple to show correctly. https://issuetracker.google.com/issues/111819099 -->
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/transparent">
<ImageView
android:id="@+id/view_once_close_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
2020-06-02 16:05:16 -03:00
android:layout_marginTop="15dp"
2020-01-07 21:44:41 -05:00
android:background="?selectableItemBackgroundBorderless"
2020-06-02 16:05:16 -03:00
android:padding="4dp"
android:src="@drawable/ic_x_24_outlined" />
2020-01-07 21:44:41 -05:00
</FrameLayout>
2019-06-11 02:18:45 -04:00
2019-09-27 10:10:30 -03:00
<TextView
android:id="@+id/view_once_duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|end"
android:layout_marginTop="15dp"
android:layout_marginEnd="16dp"
android:textAppearance="@style/ViewOnceVideo.Duration"
android:visibility="gone"
2020-06-02 16:05:16 -03:00
tools:text="00:23"
tools:visibility="visible" />
2019-09-27 10:10:30 -03:00
2019-06-11 02:18:45 -04:00
</FrameLayout>