Преглед на файлове

Show MediaBox full screen mode when landscape

Wayne преди 5 години
родител
ревизия
3b37b7ce15

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

@@ -7,12 +7,13 @@
     android:background="@android:color/transparent">
 
     <android.support.constraint.ConstraintLayout
+        style="@style/MediaBoxStyle"
         android:id="@+id/view_viewEdit_content"
         tools:visibility="visible"
         tools:background="#AA00CC"
         android:visibility="invisible"
         android:layout_width="0dp"
-        android:layout_height="336dp"
+        android:layout_height="@dimen/reader_media_box_height"
         android:background="@drawable/shape_rec_w_up_rcorner"
         android:elevation="4dp"
         app:layout_constraintBottom_toBottomOf="parent"

+ 3 - 0
reader/src/main/res/values-land/dimens.xml

@@ -0,0 +1,3 @@
+<resources>
+    <dimen name="reader_media_box_height">0dp</dimen>
+</resources>

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

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <style name="MediaBoxStyle">
+        <item name="layout_constraintTop_toTopOf">parent</item>
+    </style>
+</resources>

+ 2 - 0
reader/src/main/res/values/dimens.xml

@@ -1,3 +1,5 @@
 <resources>
     <dimen name="reader_left_right_toolbar_icon_width">48dp</dimen>
+
+    <dimen name="reader_media_box_height">336dp</dimen>
 </resources>

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

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <style name="MediaBoxStyle">
+        <!--nothing-->
+    </style>
+</resources>