UI improvements
- Manga order by title in library - New chapter list item design - Chapter item popup - Color normalisation to Material Design pallets - Theme and style fixes
BIN
app/src/main/res/drawable-hdpi/ic_expand_less_white_36dp.png
Normal file
|
After Width: | Height: | Size: 190 B |
BIN
app/src/main/res/drawable-hdpi/ic_expand_more_white_36dp.png
Normal file
|
After Width: | Height: | Size: 194 B |
BIN
app/src/main/res/drawable-hdpi/ic_more_horiz_black_36dp.png
Normal file
|
After Width: | Height: | Size: 165 B |
BIN
app/src/main/res/drawable-mdpi/ic_expand_less_white_36dp.png
Normal file
|
After Width: | Height: | Size: 156 B |
BIN
app/src/main/res/drawable-mdpi/ic_expand_more_white_36dp.png
Normal file
|
After Width: | Height: | Size: 159 B |
BIN
app/src/main/res/drawable-mdpi/ic_more_horiz_black_36dp.png
Normal file
|
After Width: | Height: | Size: 135 B |
BIN
app/src/main/res/drawable-xhdpi/ic_more_horiz_black_36dp.png
Normal file
|
After Width: | Height: | Size: 203 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_expand_less_white_36dp.png
Normal file
|
After Width: | Height: | Size: 304 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_expand_more_white_36dp.png
Normal file
|
After Width: | Height: | Size: 305 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_more_horiz_black_36dp.png
Normal file
|
After Width: | Height: | Size: 278 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_expand_less_white_36dp.png
Normal file
|
After Width: | Height: | Size: 371 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_expand_more_white_36dp.png
Normal file
|
After Width: | Height: | Size: 371 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_more_horiz_black_36dp.png
Normal file
|
After Width: | Height: | Size: 366 B |
@@ -10,7 +10,7 @@
|
||||
android:id="@+id/appbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:theme="@style/AppTheme.ActionBar">
|
||||
android:theme="@style/ThemeOverlay.AppTheme.Dark">
|
||||
|
||||
<include
|
||||
android:id="@+id/toolbar"
|
||||
@@ -20,9 +20,10 @@
|
||||
android:id="@+id/tabs"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:theme="@style/AppTheme.TabLayout"
|
||||
android:theme="@style/ThemeOverlay.AppTheme.Dark"
|
||||
app:tabGravity="fill"
|
||||
app:tabIndicatorColor="@color/accent" />
|
||||
android:background="@color/colorPrimary"
|
||||
app:tabIndicatorColor="@color/white" />
|
||||
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
@@ -31,6 +32,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0px"
|
||||
android:layout_weight="1"
|
||||
android:background="@android:color/white" />
|
||||
android:background="@color/white" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -13,14 +13,14 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center_vertical|center_horizontal"
|
||||
android:visibility="gone" />
|
||||
android:visibility="gone"/>
|
||||
|
||||
<GridView
|
||||
android:id="@+id/gridView"
|
||||
style="@style/AppTheme.GridView"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:numColumns="2"
|
||||
android:columnWidth="140dp"
|
||||
tools:listitem="@layout/item_catalogue" />
|
||||
|
||||
<ProgressBar
|
||||
@@ -29,6 +29,6 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|center_horizontal"
|
||||
android:visibility="gone" />
|
||||
android:visibility="gone"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
android:id="@+id/gridView"
|
||||
style="@style/AppTheme.GridView"
|
||||
android:choiceMode="multipleChoiceModal"
|
||||
android:numColumns="2"
|
||||
android:columnWidth="140dp"
|
||||
tools:listitem="@layout/item_catalogue" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<android.support.v4.widget.SwipeRefreshLayout
|
||||
android:id="@+id/swipe_refresh"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_above="@+id/appbar_bottom"
|
||||
android:layout_above="@+id/toolbar_bottom"
|
||||
android:orientation="vertical">
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
@@ -25,23 +25,23 @@
|
||||
|
||||
</android.support.v4.widget.SwipeRefreshLayout>
|
||||
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:id="@+id/appbar_bottom"
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar_bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:theme="@style/AppTheme.ActionBar">
|
||||
android:background="@color/colorPrimary"
|
||||
android:elevation="4dp"
|
||||
android:gravity="top|start"
|
||||
android:theme="@style/ThemeOverlay.AppTheme.Dark"
|
||||
app:popupTheme="@style/AppTheme.Popup">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar_bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="@color/colorPrimary"
|
||||
android:elevation="4dp"
|
||||
android:gravity="top|start"
|
||||
android:theme="@style/ThemeOverlay.AppTheme.Dark"
|
||||
app:popupTheme="@style/AppTheme.Popup" />
|
||||
<android.support.v7.widget.ActionMenuView
|
||||
android:id="@+id/bottom_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="?attr/actionBarSize"/>
|
||||
</android.support.v7.widget.Toolbar>
|
||||
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -20,7 +20,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:background="@color/md_red_300"
|
||||
android:background="@color/manga_unread_bg"
|
||||
android:paddingBottom="1dp"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingRight="3dp"
|
||||
@@ -59,7 +59,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:ellipsize="middle"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
|
||||
@@ -8,10 +8,11 @@
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_height="18dp"
|
||||
android:id="@+id/relativeLayout"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_toLeftOf="@+id/chapter_download_image"
|
||||
android:layout_toStartOf="@+id/chapter_download_image">
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/chapter_pages"
|
||||
@@ -20,7 +21,9 @@
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
android:textSize="12sp"
|
||||
tools:text="Pages: 45" />
|
||||
tools:text="Pages: 45"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/chapter_date"
|
||||
@@ -29,32 +32,54 @@
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
android:textSize="12sp"
|
||||
tools:text="22/02/2016"
|
||||
android:layout_alignParentRight="true" />
|
||||
</RelativeLayout>
|
||||
tools:text="22/02/2016"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/download_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:textSize="12sp"
|
||||
android:textColor="@color/accent_text"
|
||||
android:text="@string/chapter_downloaded"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"/>
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/chapter_title"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignWithParentIfMissing="true"
|
||||
android:gravity="center_vertical"
|
||||
android:textSize="20sp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
tools:text="Title"
|
||||
android:layout_toLeftOf="@+id/chapter_download_image"
|
||||
android:layout_toStartOf="@+id/chapter_download_image" />
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_toStartOf="@+id/relativeLayout2"
|
||||
android:layout_toLeftOf="@+id/relativeLayout2"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/chapter_download_image"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
<RelativeLayout
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="center"
|
||||
android:layout_alignParentRight="true"
|
||||
tools:src="@drawable/ic_file_download_black_48dp"
|
||||
/>
|
||||
android:id="@+id/relativeLayout2"
|
||||
android:layout_above="@+id/relativeLayout">
|
||||
<ImageView
|
||||
android:id="@+id/chapter_menu"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/ic_more_horiz_black_36dp"
|
||||
android:background="?android:selectableItemBackground"/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -13,8 +13,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="@color/reader_menu_background"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
||||
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
|
||||
android:theme="@style/ThemeOverlay.AppTheme.Dark"
|
||||
app:popupTheme="@style/AppTheme.Popup"
|
||||
android:elevation="4dp" />
|
||||
|
||||
<LinearLayout
|
||||
@@ -46,7 +46,9 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center_vertical" />
|
||||
android:layout_gravity="center_vertical"
|
||||
android:theme="@style/ThemeOverlay.AppTheme.Dark"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/total_pages"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#333333"
|
||||
android:background="@color/reader_menu_background"
|
||||
android:paddingRight="10dp"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingTop="5dp"
|
||||
|
||||
25
app/src/main/res/menu/chapter_single.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item android:id="@+id/action_download"
|
||||
android:title="@string/action_download"
|
||||
android:icon="@drawable/ic_file_download"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
||||
<item android:id="@+id/action_delete"
|
||||
android:title="@string/action_delete"
|
||||
android:icon="@drawable/ic_action_delete"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
||||
<item android:id="@+id/action_mark_as_read"
|
||||
android:title="@string/action_mark_as_read"
|
||||
android:icon="@drawable/ic_action_done_all"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
||||
<item android:id="@+id/action_mark_as_unread"
|
||||
android:title="@string/action_mark_as_unread"
|
||||
android:icon="@drawable/ic_action_undone_all"
|
||||
app:showAsAction="ifRoom"/>
|
||||
</menu>
|
||||
@@ -1,34 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorAccent">#FFEA00</color>
|
||||
<color name="colorPrimary">#607D8B</color>
|
||||
<color name="colorPrimaryDark">#455A64</color>
|
||||
<color name="colorPrimarySuperDark">#263238</color>
|
||||
<color name="colorPrimaryLight">#CFD8DC</color>
|
||||
<color name="colorAccent">@color/md_blue_A400</color>
|
||||
<color name="colorPrimary">@color/md_blue_grey_500</color>
|
||||
<color name="colorPrimaryDark">@color/md_blue_grey_700</color>
|
||||
<color name="colorPrimarySuperDark">@color/md_blue_grey_900</color>
|
||||
<color name="colorPrimaryLight">@color/md_blue_grey_100</color>
|
||||
|
||||
<color name="colorBackgroundLight">#ECEFF1</color>
|
||||
<color name="colorBackgroundLight">@color/md_blue_grey_50</color>
|
||||
|
||||
<color name="primary">@color/colorPrimary</color>
|
||||
<color name="primary_dark">@color/colorPrimaryDark</color>
|
||||
<color name="primary_light">@color/colorPrimaryLight</color>
|
||||
|
||||
<color name="divider">#CFD8DC</color>
|
||||
|
||||
<color name="white">#FFFFFF</color>
|
||||
<color name="primary_text">#DD000000</color>
|
||||
<color name="secondary_text">#8B000000</color>
|
||||
<color name="hint_text">#64000000</color>
|
||||
|
||||
<color name="icons">#FFFFFF</color>
|
||||
<color name="divider">@color/md_light_dividers</color>
|
||||
|
||||
<color name="white">@color/md_white_1000</color>
|
||||
<color name="primary_text">@color/md_light_primary_text</color>
|
||||
<color name="secondary_text">@color/md_light_secondary</color>
|
||||
<color name="hint_text">@color/md_light_disabled</color>
|
||||
<color name="accent_text">@color/md_green_900</color>
|
||||
|
||||
<color name="list_choice_pressed_bg_light">@color/colorPrimaryLight</color>
|
||||
|
||||
<color name="super_light_grey">#FAFAFA</color>
|
||||
<color name="line_grey">#D7D7D7</color>
|
||||
<color name="light_grey">#D4D4D4</color>
|
||||
<color name="bg_light_grey">#E9E9E9</color>
|
||||
<color name="library_text_background">#E8E8E8</color>
|
||||
<color name="manga_unread_bg">@color/colorAccent</color>
|
||||
|
||||
<color name="super_light_grey">@color/md_grey_50</color>
|
||||
<color name="line_grey">@color/md_light_dividers</color>
|
||||
<color name="light_grey">@color/md_grey_300</color>
|
||||
<color name="page_number_background">#AAE9E9E9</color>
|
||||
<color name="reader_menu_background">#333333</color>
|
||||
<color name="reader_menu_background">@color/colorPrimarySuperDark</color>
|
||||
</resources>
|
||||
@@ -85,6 +85,7 @@
|
||||
<string name="manga_chapters_tab">Chapters</string>
|
||||
<string name="selected_chapters_title">Selected: %1$d</string>
|
||||
<string name="manga_chapter_no_title">No title</string>
|
||||
<string name="chapter_downloaded">DOWNLOADED</string>
|
||||
|
||||
<!-- Reader activity -->
|
||||
<string name="downloading">Downloading…</string>
|
||||
|
||||
@@ -17,21 +17,17 @@
|
||||
|
||||
</style>
|
||||
|
||||
<style name="ThemeOverlay.AppTheme.Dark" parent="ThemeOverlay.AppCompat.Dark">
|
||||
<style name="ThemeOverlay.AppTheme.Dark" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
|
||||
<item name="colorAccent">@color/white</item>
|
||||
<item name="android:windowActionModeOverlay">true</item>
|
||||
<item name="windowActionModeOverlay">true</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.Popup" parent="@style/ThemeOverlay.AppTheme.Dark">
|
||||
<item name="android:background">@color/colorPrimary</item>
|
||||
<item name="android:textColor">@color/white</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.ActionBar" parent="@style/ThemeOverlay.AppTheme.Dark">
|
||||
<item name="android:actionModeBackground">@color/colorPrimarySuperDark</item>
|
||||
<item name="actionModeBackground">@color/colorPrimarySuperDark</item>
|
||||
</style>
|
||||
<style name="AppTheme.TabLayout" parent="@style/ThemeOverlay.AppTheme.Dark">
|
||||
|
||||
<style name="AppTheme.Popup" parent="@style/ThemeOverlay.AppTheme.Dark">
|
||||
<item name="colorAccent">@color/white</item>
|
||||
<item name="android:background">@color/colorPrimary</item>
|
||||
<item name="android:textColor">@color/white</item>
|
||||
</style>
|
||||
@@ -84,6 +80,6 @@
|
||||
</style>
|
||||
|
||||
<style name="grey_text">
|
||||
<item name="android:textColor">#e0e0e0</item>
|
||||
<item name="android:textColor">@color/md_grey_300</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||