From d8703fd2e3bcfde7e6eca2d8c4a85eee0af652a6 Mon Sep 17 00:00:00 2001 From: Yuri Revich 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 753680c71..1e5a983de 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)f9XDV3Umv!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{>%R$@b=jq z?H-wIEk&yzDaWc1f&hED}5p8Gl7QQ6fF6AsdW$V8)I$mvR vYxeo*R#nW}u_kQsw$E&)UTx3Pz@{_YYby%;(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&Vd87eOUqQtd}(9n$`{e#U?g(V?p@~Mg6G^dX2lgiY{?Q$rw}z2l_=hZeDV8<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?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+lZrkSO6dDMn?cs^zNwa8J2Occuo(RiDcbYe1#!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%{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%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 6b0c9f9a7..6e34fa3b6 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 74632faae..c325e7883 100644 --- a/app/src/main/res/layout/item_chapter.xml +++ b/app/src/main/res/layout/item_chapter.xml @@ -1,10 +1,13 @@ + 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"> - - + android:layout_alignParentTop="true" + android:paddingRight="30dp"/> + + + 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"/>