use rounded corners at the Extended Details view

This commit is contained in:
tibbi 2020-11-02 10:11:08 +01:00
parent c7d4be1d9d
commit e31cdf1381
3 changed files with 32 additions and 24 deletions

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="@dimen/small_margin" />
<solid android:color="@color/gradient_grey_start" />
</shape>

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/photo_holder"
android:layout_width="match_parent"
android:layout_height="match_parent">
@ -9,7 +9,7 @@
<com.alexvasilkov.gestures.GestureImageView
android:id="@+id/gestures_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_height="match_parent" />
<com.alexvasilkov.gestures.GestureFrameLayout
android:id="@+id/gif_view_frame"
@ -22,7 +22,7 @@
android:id="@+id/gif_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitCenter"/>
android:scaleType="fitCenter" />
</com.alexvasilkov.gestures.GestureFrameLayout>
@ -30,17 +30,17 @@
android:id="@+id/subsampling_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"/>
android:visibility="gone" />
<ImageView
android:id="@+id/panorama_outline"
android:layout_width="@dimen/play_outline_size_big"
android:layout_height="@dimen/play_outline_size_big"
android:layout_centerInParent="true"
android:padding="20dp"
android:contentDescription="@null"
android:padding="20dp"
android:src="@drawable/ic_panorama_outline"
android:visibility="gone"/>
android:visibility="gone" />
<TextView
android:id="@+id/photo_details"
@ -49,18 +49,18 @@
android:layout_alignParentStart="true"
android:layout_marginLeft="@dimen/small_margin"
android:layout_marginRight="@dimen/small_margin"
android:background="@color/gradient_grey_start"
android:background="@drawable/extended_details_background"
android:padding="@dimen/small_margin"
android:textColor="@color/theme_dark_text_color"
android:textSize="@dimen/smaller_text_size"
android:visibility="gone"
tools:text="My image\nAnother line"/>
tools:text="My image\nAnother line" />
<com.simplemobiletools.gallery.pro.views.MediaSideScroll
android:id="@+id/photo_brightness_controller"
android:layout_width="@dimen/media_side_slider_width"
android:layout_height="match_parent"
android:layout_alignParentStart="true"/>
android:layout_alignParentStart="true" />
<TextView
android:id="@+id/slide_info"
@ -77,7 +77,7 @@
android:paddingRight="@dimen/activity_margin"
android:paddingBottom="@dimen/medium_margin"
android:textColor="@android:color/white"
android:textSize="@dimen/extra_big_text_size"/>
android:textSize="@dimen/extra_big_text_size" />
<RelativeLayout
android:id="@+id/photo_portrait_stripe_wrapper"
@ -99,12 +99,12 @@
<com.simplemobiletools.gallery.pro.views.InstantItemSwitch
android:id="@+id/instant_prev_item"
android:layout_width="1dp"
android:layout_height="match_parent"/>
android:layout_height="match_parent" />
<com.simplemobiletools.gallery.pro.views.InstantItemSwitch
android:id="@+id/instant_next_item"
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"/>
android:layout_alignParentEnd="true" />
</RelativeLayout>

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/video_holder"
android:layout_width="match_parent"
@ -9,7 +8,7 @@
<ImageView
android:id="@+id/video_preview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_height="match_parent" />
<com.alexvasilkov.gestures.GestureFrameLayout
android:id="@+id/video_surface_frame"
@ -20,7 +19,7 @@
android:id="@+id/video_surface"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"/>
android:layout_centerInParent="true" />
</com.alexvasilkov.gestures.GestureFrameLayout>
@ -28,12 +27,12 @@
android:id="@+id/video_volume_controller"
android:layout_width="@dimen/media_side_slider_width"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"/>
android:layout_alignParentEnd="true" />
<com.simplemobiletools.gallery.pro.views.MediaSideScroll
android:id="@+id/video_brightness_controller"
android:layout_width="@dimen/media_side_slider_width"
android:layout_height="match_parent"/>
android:layout_height="match_parent" />
<ImageView
android:id="@+id/video_play_outline"
@ -41,7 +40,7 @@
android:layout_height="@dimen/play_outline_size_big"
android:layout_centerInParent="true"
android:padding="20dp"
android:src="@drawable/ic_play_outline_vector"/>
android:src="@drawable/ic_play_outline_vector" />
<ImageView
android:id="@+id/panorama_outline"
@ -50,7 +49,7 @@
android:layout_centerInParent="true"
android:padding="20dp"
android:src="@drawable/ic_panorama_outline"
android:visibility="gone"/>
android:visibility="gone" />
<TextView
android:id="@+id/video_details"
@ -59,14 +58,14 @@
android:layout_alignParentStart="true"
android:layout_marginLeft="@dimen/small_margin"
android:layout_marginRight="@dimen/small_margin"
android:background="@color/gradient_grey_start"
android:background="@drawable/extended_details_background"
android:padding="@dimen/small_margin"
android:textColor="@color/theme_dark_text_color"
android:textSize="@dimen/smaller_text_size"
android:visibility="gone"
tools:text="My video\nAnother line"/>
tools:text="My video\nAnother line" />
<include layout="@layout/bottom_video_time_holder"/>
<include layout="@layout/bottom_video_time_holder" />
<TextView
android:id="@+id/slide_info"
@ -83,6 +82,6 @@
android:paddingRight="@dimen/activity_margin"
android:paddingBottom="@dimen/medium_margin"
android:textColor="@android:color/white"
android:textSize="@dimen/extra_big_text_size"/>
android:textSize="@dimen/extra_big_text_size" />
</RelativeLayout>