From d8703fd2e3bcfde7e6eca2d8c4a85eee0af652a6 Mon Sep 17 00:00:00 2001
From: Yuri Revich <icanitgs@gmail.com>
Date: Mon, 30 Nov 2015 22:52:12 +0300
Subject: [PATCH] Chapter view improvements

- Smaller title
- Bigger touch zone
---
 .../ui/manga/chapter/ChaptersHolder.java      |   3 +-
 .../ic_more_horiz_black_24dp.png              | Bin 0 -> 240 bytes
 .../ic_more_horiz_black_36dp.png              | Bin 165 -> 0 bytes
 .../ic_more_horiz_black_24dp.png              | Bin 0 -> 197 bytes
 .../ic_more_horiz_black_36dp.png              | Bin 135 -> 0 bytes
 .../ic_more_horiz_black_24dp.png              | Bin 0 -> 292 bytes
 .../ic_more_horiz_black_36dp.png              | Bin 203 -> 0 bytes
 .../ic_more_horiz_black_24dp.png              | Bin 0 -> 374 bytes
 .../ic_more_horiz_black_36dp.png              | Bin 278 -> 0 bytes
 .../ic_more_horiz_black_24dp.png              | Bin 0 -> 450 bytes
 .../ic_more_horiz_black_36dp.png              | Bin 366 -> 0 bytes
 app/src/main/res/layout/item_catalogue.xml    |   2 +-
 app/src/main/res/layout/item_chapter.xml      |  54 ++++++++++--------
 13 files changed, 33 insertions(+), 26 deletions(-)
 create mode 100644 app/src/main/res/drawable-hdpi/ic_more_horiz_black_24dp.png
 delete mode 100644 app/src/main/res/drawable-hdpi/ic_more_horiz_black_36dp.png
 create mode 100644 app/src/main/res/drawable-mdpi/ic_more_horiz_black_24dp.png
 delete mode 100644 app/src/main/res/drawable-mdpi/ic_more_horiz_black_36dp.png
 create mode 100644 app/src/main/res/drawable-xhdpi/ic_more_horiz_black_24dp.png
 delete mode 100644 app/src/main/res/drawable-xhdpi/ic_more_horiz_black_36dp.png
 create mode 100644 app/src/main/res/drawable-xxhdpi/ic_more_horiz_black_24dp.png
 delete mode 100644 app/src/main/res/drawable-xxhdpi/ic_more_horiz_black_36dp.png
 create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_more_horiz_black_24dp.png
 delete mode 100644 app/src/main/res/drawable-xxxhdpi/ic_more_horiz_black_36dp.png

diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersHolder.java b/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersHolder.java
index 753680c711..1e5a983de1 100644
--- a/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersHolder.java
+++ b/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersHolder.java
@@ -7,6 +7,7 @@ import android.support.v7.widget.RecyclerView;
 import android.view.MenuItem;
 import android.view.View;
 import android.widget.ImageView;
+import android.widget.RelativeLayout;
 import android.widget.TextView;
 
 import java.text.SimpleDateFormat;
@@ -27,7 +28,7 @@ public class ChaptersHolder extends RecyclerView.ViewHolder implements
 
     @Bind(R.id.chapter_title) TextView title;
     @Bind(R.id.download_text) TextView downloadText;
-    @Bind(R.id.chapter_menu) ImageView chapterMenu;
+    @Bind(R.id.chapter_menu) RelativeLayout chapterMenu;
     @Bind(R.id.chapter_pages) TextView pages;
     @Bind(R.id.chapter_date) TextView date;
 
diff --git a/app/src/main/res/drawable-hdpi/ic_more_horiz_black_24dp.png b/app/src/main/res/drawable-hdpi/ic_more_horiz_black_24dp.png
new file mode 100644
index 0000000000000000000000000000000000000000..4580c8165bd85f5f5a6609a9c74874ecc1a6c910
GIT binary patch
literal 240
zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbB*pj^6T^Rm@;DWu&Cj&(|3p^r=
z85p>QL70(Y)*K0-AbW|YuPgg~ZaHCDxz8&jHv)xfJzX3_A`ZX3WXRQ^AaV3#{lyEW
zd#1}OEYf@-anI3a#`BC-u8S5PQOvH~@A{|agfNSspx{J*Q-AhjGvo>ySj!X`yn70(
zt&6Xwp0Y~V^JaO;!x+WlEaTQUXLD9e(bU=^e&*gO5m7F4<9N;BFYVL5Oj2Ac7onZ%
d0tEkx7#1Egl?whBuLg7ogQu&X%Q~loCIH0_QZN7j

literal 0
HcmV?d00001

diff --git a/app/src/main/res/drawable-hdpi/ic_more_horiz_black_36dp.png b/app/src/main/res/drawable-hdpi/ic_more_horiz_black_36dp.png
deleted file mode 100644
index 82f5f92219b4f4723198a7bebc1bcdfd5718a4c3..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 165
zcmeAS@N?(olHy`uVBq!ia0vp^W+2SL0wmRZ7KH(+98VX=kP61PXASw76eV09?rf}(
z=BU;=bn#4{jZ9F)f<I3sW`FnnS=R(q`=Pk~S4`=(8?pYq-}O|(d(VDOUB3JnU+;QR
z_uj8>9XDV3Umv!e{bq>s_2WMeM=*OnFRC*RJKA+C=36*W_m4dca*TU#e*46s3gj_(
My85}Sb4q9e019J3UH||9

diff --git a/app/src/main/res/drawable-mdpi/ic_more_horiz_black_24dp.png b/app/src/main/res/drawable-mdpi/ic_more_horiz_black_24dp.png
new file mode 100644
index 0000000000000000000000000000000000000000..ce43496862587bceb4bb2801f464dd12ffee0724
GIT binary patch
literal 197
zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjY)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4@xYYs>cdx@v7EBk$JIbm7-Mdgv*K%pQ{7sn8f<8RMy6m)P9alPowE3!fN
zWn%XtZqZyHVHK4&7S7N9U!JM;3mp0$dVE6As|(4FdP{rCf335#e0y=h(GLsa<#hDl
lo^I}uyu9uGH-SU>Yy7p9-_D-$-wkLwgQu&X%Q~loCIAgALmU7A

literal 0
HcmV?d00001

diff --git a/app/src/main/res/drawable-mdpi/ic_more_horiz_black_36dp.png b/app/src/main/res/drawable-mdpi/ic_more_horiz_black_36dp.png
deleted file mode 100644
index 97bd428c9139fae4c4c6a5e639a89f60a4af3cba..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 135
zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k0wldT1B8K;pQnpsNCo5DQ`TH8h62nNyN*@Y
zH21E5d7iaw(!#}lEPP+5h#tx_+AQCEcv*1EB#A%!O&6;8&6yS;WbGHM(J8lFYl_Rl
jjWa^z7S5P?_XE=z&5-)vH)0L|O=j?P^>bP0l+XkKBg-x(

diff --git a/app/src/main/res/drawable-xhdpi/ic_more_horiz_black_24dp.png b/app/src/main/res/drawable-xhdpi/ic_more_horiz_black_24dp.png
new file mode 100644
index 0000000000000000000000000000000000000000..f8132fbbcb31b56bfa44e804b6716de5bd61f30c
GIT binary patch
literal 292
zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTCwj^(N7l!{JxM1({$v_d#0*}aI
z1_o|n5N2eUHAey{$X?><>&kwgTTWPxHR$2tc|f6!o-U3d8TZ~^HsoV;lyG?1J}*ai
zV$N%pTcup;k?9Xiw5H~~=2|q9+ha}GX0F>eIF==Fz0dwXedeE;JRXx&JSTmbUp3#Q
za-M&qX#fLn0Ani0!wHM}qZZiK@bg$N<~Dd8_v!7v)&CDNubD5yXTTK3`RfI1m-yz&
zCcCOewNLT2yZhr7R2kk@eX&?v<2L`*QnqQFzu2409b>OA*Ewx=fJK5iJb_!siQ{<u
fcaUu=FW<2pUK!1B|8JEy(D4kOu6{1-oD!M<3)^XN

literal 0
HcmV?d00001

diff --git a/app/src/main/res/drawable-xhdpi/ic_more_horiz_black_36dp.png b/app/src/main/res/drawable-xhdpi/ic_more_horiz_black_36dp.png
deleted file mode 100644
index 091a7c62a45e4bf22da9f4e7c4e5d07507230c7d..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 203
zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY0wn)GsXhawCV9FzhEy=VJ!i|+>>%R$@b=jq
z?H<!Kx^{nAE^spF$T^P8rkRgSw{y&UzqS3eFi-;n!-3w=SEkwa`9aHba+&5;z5KB&
zbn9Bq6?VqcSEgh-Rmrwy>-wIEk&yzDaWc1f&hED}5p8Gl7QQ6fF6AsdW$V8)I$mvR
vYxeo*R#nW}u_kQsw$E&)UTx3Pz@{_YYby%;(<JEk4#f3z^>bP0l+XkK@KH>v

diff --git a/app/src/main/res/drawable-xxhdpi/ic_more_horiz_black_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_more_horiz_black_24dp.png
new file mode 100644
index 0000000000000000000000000000000000000000..9d97e47953f975185a8e56692f4c7e973c9fc0ce
GIT binary patch
literal 374
zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY1|&n@ZgvM!Y)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4@xYmNj^kiEpy*OmP~x16w?q}zk}7a15BnLS+`Ln>~)y=Lfl*g>H6q5KLB
z-HVHLIaQZ)xO1>OD49QG5EK=)WM00&Vd87eOU<sVLae>qQtd}(9n$`{e#<fc#oMQC
zRq&jo0z*q)T1ov*(tIis!Ni?#%|5TubVFCid8y(cF0G|=n9m<LdccGGjB-+Ru%DOX
zU(da7BA$H@3K#qs>U?g(V?p@~Mg6G^dX2lgiY{?Q$rw}z2l_=hZeDV8<<ljiU)J|%
zuJD~THwq~9nmKL0)+tZzjIGZ-a~j&aii)^i<uCbcKkXL7_1*7ef=^2p89h6Gwe+t0
zWt08`(gkcL2h2Zk-C^D?_%SZJ5AIkXBkMD>SII=K4%w-Szz|~aboFyt=akR{0IsTx
A<^TWy

literal 0
HcmV?d00001

diff --git a/app/src/main/res/drawable-xxhdpi/ic_more_horiz_black_36dp.png b/app/src/main/res/drawable-xxhdpi/ic_more_horiz_black_36dp.png
deleted file mode 100644
index d0888688997c47b1a95f3ad588a3c67eec7317cb..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 278
zcmeAS@N?(olHy`uVBq!ia0vp^IUvlz0wh)Q=eq%^yPhtNAr*{oFWGi6F$%am{A6_K
zfudNX%f~5Qa;btJx&Fx{9ZxWs$$LiZIG@%E&U@ECE}nFa8>kTp2(R6G-Phl?<f`9l
z!;pP5{a*dQ8|b_3Q|;?@|ITim^<3-z8&gw*>nU3IUDUtIznieKCj0AAUE!(u@qM|%
zQ{RX6#R^S*AK6#hdFuO$<3MIq-&~+%cwes2)cnvsU8AY*e-yq_5B({%wK;hItY=#H
zW8NOP629+~iPfIUo|he3hl8SHudKWrDXq&SisULFv;L{W_p{3)woC#Ed%F6$taD0e
F0sy+lZ<zo9

diff --git a/app/src/main/res/drawable-xxxhdpi/ic_more_horiz_black_24dp.png b/app/src/main/res/drawable-xxxhdpi/ic_more_horiz_black_24dp.png
new file mode 100644
index 0000000000000000000000000000000000000000..7ca2db3334bec63f49d10715f5183b80774307d2
GIT binary patch
literal 450
zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7OGoY)RhkE)4%caKYZ?lYt_f1s;*b
z3=G`DAk4@xYmNj^kiEpy*OmP~x16w?W`gDVS_TG2e@_?3kcwMxZ`k@tJ4&!UFfW<I
z^p;bA-N9qs2}`BcYeMV`9TXnT4rtL3?`XMHUDFdVGmVQYrDwX~tuvpetezXb`PY}T
z=hc9QBY^`~YJR>rkSO6dDMn?cs^zNwa8J2Occuo(RiDcbYe<yfn;fJ5bKAqMrITDI
zRcbzs_y6h39iU!6|4GSd#r>1#<o^~7K7aqogJ!7*zho!-Pui>!F8g%*>xNxv|86F}
zusV4%I{Vd?&)+XHiYs^h-`o7>8S4yFIqR=L+Cpk`Q|W~L(|u?7>m0~BawC=f=UMI#
z21#$u^L?5v{$QQl$ui4hx>hIhqZ_LD?xiYiUpi&~|LTAH%pO+motOVQeA4N@Pq)Pu
z{1dkH|Ma-GEKYr==clbxK3(yyyBsgLKIU!zYu>_dkLK)IBYiC?=eD1%Jd&q@%o+RA
X<yP(g^r^1?JV?UR)z4*}Q$iB}b%VRs

literal 0
HcmV?d00001

diff --git a/app/src/main/res/drawable-xxxhdpi/ic_more_horiz_black_36dp.png b/app/src/main/res/drawable-xxxhdpi/ic_more_horiz_black_36dp.png
deleted file mode 100644
index 6a45c0cfcfe75c247ff45ee7dcb2364f3dce4b7a..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 366
zcmeAS@N?(olHy`uVBq!ia0vp^6F``Q1xWh(YZ)^zFq(S0IEGX(zP%RcC7meJ_Ap=Z
zt;^jh3wCr|O1kj3<3^st$)YB`1+Q8!CB7=nd~ILgz-M!QXZ=qOdru~yAt<1xV{uH{
z^!7db?$(y=JmL7?Z|dPcC+0lupItoJcfa4>%{J*jkJ~=o62APN*=g(VTm6^ci=5VI
zoq1ieXvXt}j{P&EN>A0CH>$Y4*2=Zdh@XGf=FH2Q#WPcn=H4zj^(KsWSN3Ji&l|EX
z?DJiI=JhH^eO@c(8i&?**KJ?2&E@|)X<zOI&9aSI7b=_mHa3gapQ%gDx}aHZZ1ZB3
z^YVLY{?5g9&w~5?_Fi7-c)Zr?>%P6#&%M|C?VW7%@42D;_t#fu7tQ^tzh5N$=bf#=
u`IB?sZ90GY_S@pwpMCyXeMRvlkkfGg%olh5pfDaykc_9RpUXO@geCy|AfccD

diff --git a/app/src/main/res/layout/item_catalogue.xml b/app/src/main/res/layout/item_catalogue.xml
index 6b0c9f9a7a..6e34fa3b64 100644
--- a/app/src/main/res/layout/item_catalogue.xml
+++ b/app/src/main/res/layout/item_catalogue.xml
@@ -44,7 +44,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"
diff --git a/app/src/main/res/layout/item_chapter.xml b/app/src/main/res/layout/item_chapter.xml
index 74632faae6..c325e78834 100644
--- a/app/src/main/res/layout/item_chapter.xml
+++ b/app/src/main/res/layout/item_chapter.xml
@@ -1,10 +1,13 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:tools="http://schemas.android.com/tools"
-    android:layout_width="fill_parent"
-    android:layout_height="?android:attr/listPreferredItemHeight"
-    android:padding="6dip"
-    android:background="@drawable/selector_chapter_light">
+                xmlns:tools="http://schemas.android.com/tools"
+                android:layout_width="fill_parent"
+                android:layout_height="?android:attr/listPreferredItemHeight"
+                android:paddingStart="?android:attr/listPreferredItemPaddingStart"
+                android:background="@drawable/selector_chapter_light"
+                android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
+                android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
+                android:paddingRight="?android:attr/listPreferredItemPaddingRight">
 
     <RelativeLayout
         android:layout_width="fill_parent"
@@ -52,33 +55,36 @@
         android:layout_height="wrap_content"
         android:layout_alignWithParentIfMissing="true"
         android:gravity="center_vertical"
-        android:textSize="20sp"
+        android:textSize="18dp"
         android:ellipsize="end"
         android:maxLines="1"
         tools:text="Title"
-        android:layout_alignParentTop="true"
         android:layout_alignParentLeft="true"
         android:layout_alignParentStart="true"
-        android:layout_toStartOf="@+id/relativeLayout2"
-        android:layout_toLeftOf="@+id/relativeLayout2"/>
-
-    <RelativeLayout
-        android:layout_width="30dp"
-        android:layout_height="30dp"
-        android:layout_alignParentTop="true"
+        android:layout_above="@+id/relativeLayout"
         android:layout_alignParentRight="true"
         android:layout_alignParentEnd="true"
-        android:layout_gravity="center_vertical"
-        android:gravity="center"
-        android:id="@+id/relativeLayout2"
-        android:layout_above="@+id/relativeLayout">
+        android:layout_alignParentTop="true"
+        android:paddingRight="30dp"/>
+
+    <RelativeLayout
+        android:id="@+id/chapter_menu"
+        android:layout_width="40dp"
+        android:layout_height="wrap_content"
+        android:layout_alignParentTop="true"
+        android:gravity="center|end"
+        android:layout_alignRight="@+id/chapter_title"
+        android:layout_alignEnd="@+id/chapter_title"
+        android:layout_alignBottom="@+id/relativeLayout"
+        android:paddingBottom="18dp">
         <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"/>
+            android:layout_width="24dp"
+            android:layout_height="24dp"
+            android:src="@drawable/ic_more_horiz_black_24dp"
+            android:background="?android:selectableItemBackground"
+            android:layout_alignParentTop="true"
+            android:layout_alignParentRight="true"
+            android:layout_alignParentEnd="false"/>
     </RelativeLayout>