Procházet zdrojové kódy

Add bottom bar border

Wayne před 5 roky
rodič
revize
7c724fa5b0
1 změnil soubory, kde provedl 20 přidání a 0 odebrání
  1. 20 0
      reader/src/main/res/layout/activity_reader.xml

+ 20 - 0
reader/src/main/res/layout/activity_reader.xml

@@ -248,10 +248,20 @@
         app:layout_constraintBottom_toBottomOf="parent"
         android:layout_width="0dp"
         android:layout_height="wrap_content">
+        <View
+            android:id="@+id/view_readerActivity_border"
+            android:background="#1e000000"
+            app:layout_constraintTop_toTopOf="parent"
+            app:layout_constraintLeft_toLeftOf="parent"
+            app:layout_constraintRight_toRightOf="parent"
+            android:layout_width="0dp"
+            android:layout_height="1dp" />
         <android.support.v7.widget.AppCompatImageButton
             android:id="@+id/ib_readerActivity_bottomToolbarPrevious"
             style="@style/ReaderBottomToolbarImageButton"
             android:src="@drawable/ic_prev"
+            app:layout_constraintTop_toBottomOf="@id/view_readerActivity_border"
+            app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintLeft_toLeftOf="parent"
             app:layout_constraintRight_toLeftOf="@id/ib_readerActivity_bottomToolbarShare"
             app:layout_constraintHorizontal_chainStyle="spread"
@@ -260,6 +270,8 @@
             android:id="@+id/ib_readerActivity_bottomToolbarShare"
             style="@style/ReaderBottomToolbarImageButton"
             android:src="@drawable/ic_share"
+            app:layout_constraintTop_toBottomOf="@id/view_readerActivity_border"
+            app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintLeft_toRightOf="@id/ib_readerActivity_bottomToolbarPrevious"
             app:layout_constraintRight_toLeftOf="@id/ib_readerActivity_bottomToolbarKdanCloud"
             />
@@ -267,6 +279,8 @@
             android:id="@+id/ib_readerActivity_bottomToolbarKdanCloud"
             style="@style/ReaderBottomToolbarImageButton"
             android:src="@drawable/ic_kdancloud"
+            app:layout_constraintTop_toBottomOf="@id/view_readerActivity_border"
+            app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintLeft_toRightOf="@id/ib_readerActivity_bottomToolbarShare"
             app:layout_constraintRight_toLeftOf="@id/ib_readerActivity_bottomToolbarViewAll"
             />
@@ -274,6 +288,8 @@
             android:id="@+id/ib_readerActivity_bottomToolbarViewAll"
             style="@style/ReaderBottomToolbarImageButton"
             android:src="@drawable/ic_viewall"
+            app:layout_constraintTop_toBottomOf="@id/view_readerActivity_border"
+            app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintLeft_toRightOf="@id/ib_readerActivity_bottomToolbarKdanCloud"
             app:layout_constraintRight_toLeftOf="@id/ib_readerActivity_bottomToolbarMediaBox"
             />
@@ -281,6 +297,8 @@
             android:id="@+id/ib_readerActivity_bottomToolbarMediaBox"
             style="@style/ReaderBottomToolbarImageButton"
             android:src="@drawable/ic_work"
+            app:layout_constraintTop_toBottomOf="@id/view_readerActivity_border"
+            app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintLeft_toRightOf="@id/ib_readerActivity_bottomToolbarViewAll"
             app:layout_constraintRight_toLeftOf="@id/ib_readerActivity_bottomToolbarNext"
             />
@@ -288,6 +306,8 @@
             android:id="@+id/ib_readerActivity_bottomToolbarNext"
             style="@style/ReaderBottomToolbarImageButton"
             android:src="@drawable/ic_next"
+            app:layout_constraintTop_toBottomOf="@id/view_readerActivity_border"
+            app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintLeft_toRightOf="@id/ib_readerActivity_bottomToolbarMediaBox"
             app:layout_constraintRight_toRightOf="parent"
             />