Skip to content

Commit

Permalink
Add outlined view-once close icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-signal committed Jun 2, 2020
1 parent 6102e9a commit 3192cc0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
Binary file added app/src/main/res/drawable-mdpi/ic_x_24_outlined.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
19 changes: 9 additions & 10 deletions app/src/main/res/layout/view_once_message_activity.xml
@@ -1,22 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:background="@color/core_black">

<ImageView
android:id="@+id/view_once_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitCenter"/>
android:scaleType="fitCenter" />

<org.thoughtcrime.securesms.video.VideoPlayer
android:id="@+id/view_once_video"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
android:visibility="gone" />

<!-- Need this wrapper layout to get the ripple to show correctly. https://issuetracker.google.com/issues/111819099 -->
<FrameLayout
Expand All @@ -28,12 +28,11 @@
android:id="@+id/view_once_close_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginStart="15dp"
android:padding="4dp"
android:tint="@color/core_white"
android:layout_marginTop="15dp"
android:background="?selectableItemBackgroundBorderless"
app:srcCompat="@drawable/ic_x"/>
android:padding="4dp"
android:src="@drawable/ic_x_24_outlined" />

</FrameLayout>

Expand All @@ -46,7 +45,7 @@
android:layout_marginEnd="16dp"
android:textAppearance="@style/ViewOnceVideo.Duration"
android:visibility="gone"
tools:visibility="visible"
tools:text="00:23" />
tools:text="00:23"
tools:visibility="visible" />

</FrameLayout>

0 comments on commit 3192cc0

Please sign in to comment.