Browse Source

Set non-rounded background to landscape media box

Wayne 5 years ago
parent
commit
12400ee67e

+ 1 - 1
reader/src/main/res/drawable/shape_rec_w_up_rcorner.xml

@@ -2,7 +2,7 @@
 <shape xmlns:android="http://schemas.android.com/apk/res/android"
     android:shape="rectangle">
 
-    <solid android:color="#ffffff" />
+    <solid android:color="@color/reader_media_box_bg" />
 
     <corners
         android:topLeftRadius="12dp"

+ 0 - 1
reader/src/main/res/layout/view_viewer_edit.xml

@@ -14,7 +14,6 @@
         android:visibility="invisible"
         android:layout_width="0dp"
         android:layout_height="@dimen/reader_media_box_height"
-        android:background="@drawable/shape_rec_w_up_rcorner"
         android:elevation="4dp"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintLeft_toLeftOf="parent"

+ 1 - 0
reader/src/main/res/values-land/styles_media_box.xml

@@ -2,5 +2,6 @@
 <resources>
     <style name="MediaBoxStyle">
         <item name="layout_constraintTop_toTopOf">parent</item>
+        <item name="android:background">@color/reader_media_box_bg</item>
     </style>
 </resources>

+ 1 - 0
reader/src/main/res/values/colors.xml

@@ -7,6 +7,7 @@
 
     <color name="reader_toolbar_bg">#D0FFFFFF</color>
     <color name="reader_bottom_toolbar_bg">#FFFFFF</color>
+    <color name="reader_media_box_bg">#FFFFFF</color>
     <color name="reader_toolbar_title_color">#E2000000</color>
     <color name="reader_bottom_toolbar_bottom_color_normal">#FFFFFF</color>
     <color name="reader_bottom_toolbar_bottom_color_press">@color/picton_blue</color>

+ 1 - 1
reader/src/main/res/values/styles_media_box.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
     <style name="MediaBoxStyle">
-        <!--nothing-->
+        <item name="android:background">@drawable/shape_rec_w_up_rcorner</item>
     </style>
 </resources>