Browse Source

Modify layout of left toolbar

cooperku_kdanmobile 5 years ago
parent
commit
5a548d7641
1 changed files with 17 additions and 9 deletions
  1. 17 9
      reader/src/main/res/layout/activity_reader.xml

+ 17 - 9
reader/src/main/res/layout/activity_reader.xml

@@ -45,47 +45,54 @@
     <com.kdanmobile.reader.HorizontalView
     <com.kdanmobile.reader.HorizontalView
         android:id="@+id/viewGroup_readerActivity_leftToolbar"
         android:id="@+id/viewGroup_readerActivity_leftToolbar"
         app:layout_constraintLeft_toLeftOf="parent"
         app:layout_constraintLeft_toLeftOf="parent"
-        app:layout_constraintTop_toTopOf="parent"
-        app:layout_constraintBottom_toBottomOf="parent"
-        android:background="@drawable/bg_reader_tool_bar_left"
+        app:layout_constraintTop_toBottomOf="@+id/toolbar_readerActivity"
+        app:layout_constraintBottom_toTopOf="@+id/viewGroup_readerActivity_bottomToolbar"
         android:layout_width="wrap_content"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content">
         android:layout_height="wrap_content">
         <android.support.constraint.ConstraintLayout
         <android.support.constraint.ConstraintLayout
             android:layout_width="wrap_content"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content">
             android:layout_height="wrap_content">
-            <FrameLayout
-                android:id="@+id/frameLayout_readerActivity_leftToolbarContainer"
+            <LinearLayout
+                android:id="@+id/linearLayout_readerActivity_leftToolbarContainer"
+                app:layout_constraintRight_toLeftOf="@+id/viewGroup_readerActivity_leftToolbarButtons"
                 app:layout_constraintLeft_toLeftOf="parent"
                 app:layout_constraintLeft_toLeftOf="parent"
-                app:layout_constraintRight_toRightOf="parent"
                 app:layout_constraintTop_toTopOf="parent"
                 app:layout_constraintTop_toTopOf="parent"
                 app:layout_constraintBottom_toBottomOf="parent"
                 app:layout_constraintBottom_toBottomOf="parent"
-                android:layout_width="0dp"
-                android:layout_height="0dp" />
+                android:background="@drawable/bg_reader_tool_bar_left"
+                android:orientation="vertical"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content" />
             <LinearLayout
             <LinearLayout
                 android:id="@+id/viewGroup_readerActivity_leftToolbarButtons"
                 android:id="@+id/viewGroup_readerActivity_leftToolbarButtons"
-                app:layout_constraintLeft_toLeftOf="parent"
+                app:layout_constraintLeft_toRightOf="@+id/linearLayout_readerActivity_leftToolbarContainer"
+                app:layout_constraintRight_toRightOf="parent"
                 app:layout_constraintTop_toTopOf="parent"
                 app:layout_constraintTop_toTopOf="parent"
                 app:layout_constraintBottom_toBottomOf="parent"
                 app:layout_constraintBottom_toBottomOf="parent"
+                android:background="@drawable/bg_reader_tool_bar_left"
                 android:orientation="vertical"
                 android:orientation="vertical"
                 android:layout_width="wrap_content"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content">
                 android:layout_height="wrap_content">
                 <ImageView
                 <ImageView
                     android:id="@+id/iv_readerActivity_thumbnail"
                     android:id="@+id/iv_readerActivity_thumbnail"
+                    android:onClick="onClick"
                     style="@style/ReaderLeftRightToolbarIImageButton"
                     style="@style/ReaderLeftRightToolbarIImageButton"
                     android:src="@drawable/ic_pagelist_thumbnail_nor" />
                     android:src="@drawable/ic_pagelist_thumbnail_nor" />
                 <View style="@style/ReaderLeftToolbarDivider"/>
                 <View style="@style/ReaderLeftToolbarDivider"/>
                 <ImageView
                 <ImageView
                     android:id="@+id/iv_readerActivity_bookmark"
                     android:id="@+id/iv_readerActivity_bookmark"
+                    android:onClick="onClick"
                     style="@style/ReaderLeftRightToolbarIImageButton"
                     style="@style/ReaderLeftRightToolbarIImageButton"
                     android:src="@drawable/ic_pagelist_bookmk_nor" />
                     android:src="@drawable/ic_pagelist_bookmk_nor" />
                 <View style="@style/ReaderLeftToolbarDivider"/>
                 <View style="@style/ReaderLeftToolbarDivider"/>
                 <ImageView
                 <ImageView
                     android:id="@+id/iv_readerActivity_outline"
                     android:id="@+id/iv_readerActivity_outline"
+                    android:onClick="onClick"
                     style="@style/ReaderLeftRightToolbarIImageButton"
                     style="@style/ReaderLeftRightToolbarIImageButton"
                     android:src="@drawable/ic_pagelist_outline_nor" />
                     android:src="@drawable/ic_pagelist_outline_nor" />
                 <View style="@style/ReaderLeftToolbarDivider"/>
                 <View style="@style/ReaderLeftToolbarDivider"/>
                 <ImageView
                 <ImageView
                     android:id="@+id/iv_readerActivity_search"
                     android:id="@+id/iv_readerActivity_search"
+                    android:onClick="onClick"
                     style="@style/ReaderLeftRightToolbarIImageButton"
                     style="@style/ReaderLeftRightToolbarIImageButton"
                     android:src="@drawable/ic_pagelist_search_nor" />
                     android:src="@drawable/ic_pagelist_search_nor" />
             </LinearLayout>
             </LinearLayout>
@@ -109,6 +116,7 @@
                 <ImageView
                 <ImageView
                     android:id="@+id/iv_readerActivity_fullScreen"
                     android:id="@+id/iv_readerActivity_fullScreen"
                     android:src="@drawable/selector_tool_fullscreen"
                     android:src="@drawable/selector_tool_fullscreen"
+                    android:onClick="onClick"
                     app:layout_constraintTop_toTopOf="parent"
                     app:layout_constraintTop_toTopOf="parent"
                     app:layout_constraintBottom_toTopOf="@id/view_readerActivity_rightToolbarDividerFullScreenCopy"
                     app:layout_constraintBottom_toTopOf="@id/view_readerActivity_rightToolbarDividerFullScreenCopy"
                     style="@style/ReaderLeftRightToolbarIImageButton" />
                     style="@style/ReaderLeftRightToolbarIImageButton" />