Update reader ui
This commit is contained in:
11
app/src/main/res/drawable/ic_slider.xml
Normal file
11
app/src/main/res/drawable/ic_slider.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:tint="?attr/colorControlNormal"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M21,9L17,5V8H10V10H17V13M7,11L3,15L7,19V16H14V14H7V11Z" />
|
||||
</vector>
|
||||
@@ -60,15 +60,6 @@
|
||||
android:layout_weight="1"
|
||||
tools:menu="@menu/opt_reader_bottom">
|
||||
|
||||
<com.google.android.material.slider.Slider
|
||||
android:id="@+id/slider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:stepSize="1"
|
||||
android:valueFrom="0"
|
||||
app:labelBehavior="floating"
|
||||
app:tickVisible="false" />
|
||||
|
||||
</com.google.android.material.appbar.MaterialToolbar>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -58,23 +58,14 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_margin="8dp"
|
||||
app:cardBackgroundColor="?colorBackgroundFloating"
|
||||
app:layout_insetEdge="bottom">
|
||||
|
||||
<com.google.android.material.appbar.MaterialToolbar
|
||||
android:id="@+id/toolbar_bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
tools:menu="@menu/opt_reader_bottom">
|
||||
|
||||
<com.google.android.material.slider.Slider
|
||||
android:id="@+id/slider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:stepSize="1.0"
|
||||
android:valueFrom="0"
|
||||
app:labelBehavior="floating" />
|
||||
|
||||
</com.google.android.material.appbar.MaterialToolbar>
|
||||
tools:menu="@menu/opt_reader_bottom" />
|
||||
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
|
||||
@@ -6,18 +6,21 @@
|
||||
tools:ignore="AlwaysShowAction">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_bookmark"
|
||||
android:icon="@drawable/ic_bookmark"
|
||||
android:title="@string/bookmark_add"
|
||||
android:id="@+id/action_slider"
|
||||
android:icon="@drawable/ic_slider"
|
||||
android:title="@string/reader_slider"
|
||||
android:visible="false"
|
||||
app:showAsAction="always" />
|
||||
app:actionViewClass="com.google.android.material.slider.Slider"
|
||||
app:showAsAction="always|collapseActionView"
|
||||
tools:visible="true" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_pages_thumbs"
|
||||
android:icon="@drawable/ic_grid"
|
||||
android:title="@string/pages"
|
||||
android:visible="false"
|
||||
app:showAsAction="always" />
|
||||
app:showAsAction="always"
|
||||
tools:visible="true" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_options"
|
||||
|
||||
@@ -6,17 +6,11 @@
|
||||
tools:ignore="AlwaysShowAction">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_chapters"
|
||||
android:icon="@drawable/ic_expand_more"
|
||||
android:orderInCategory="0"
|
||||
android:title="@string/chapters"
|
||||
app:showAsAction="always" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_incognito"
|
||||
android:icon="@drawable/ic_incognito"
|
||||
android:title="@string/incognito_mode"
|
||||
android:id="@+id/action_bookmark"
|
||||
android:icon="@drawable/ic_bookmark"
|
||||
android:title="@string/bookmark_add"
|
||||
android:visible="false"
|
||||
app:showAsAction="always" />
|
||||
app:showAsAction="always"
|
||||
tools:visible="true" />
|
||||
|
||||
</menu>
|
||||
|
||||
Reference in New Issue
Block a user