From 357da7178b845e0cb63dc9b6c1dd6667d507cbb6 Mon Sep 17 00:00:00 2001 From: Yuri Revich Date: Wed, 2 Dec 2015 10:08:04 +0300 Subject: [PATCH] expanding chapter item menu button layout --- .../data/sync/LibraryUpdateService.java | 2 +- app/src/main/res/layout/item_chapter.xml | 143 ++++++++++-------- 2 files changed, 78 insertions(+), 67 deletions(-) diff --git a/app/src/main/java/eu/kanade/mangafeed/data/sync/LibraryUpdateService.java b/app/src/main/java/eu/kanade/mangafeed/data/sync/LibraryUpdateService.java index fd618872ff..c6d96071c4 100644 --- a/app/src/main/java/eu/kanade/mangafeed/data/sync/LibraryUpdateService.java +++ b/app/src/main/java/eu/kanade/mangafeed/data/sync/LibraryUpdateService.java @@ -16,8 +16,8 @@ import eu.kanade.mangafeed.App; import eu.kanade.mangafeed.BuildConfig; import eu.kanade.mangafeed.R; import eu.kanade.mangafeed.data.database.DatabaseHelper; -import eu.kanade.mangafeed.data.source.SourceManager; import eu.kanade.mangafeed.data.database.models.Manga; +import eu.kanade.mangafeed.data.source.SourceManager; import eu.kanade.mangafeed.util.AndroidComponentUtil; import eu.kanade.mangafeed.util.NetworkUtil; import eu.kanade.mangafeed.util.NotificationUtil; diff --git a/app/src/main/res/layout/item_chapter.xml b/app/src/main/res/layout/item_chapter.xml index 5f02487ed9..98a37a012e 100644 --- a/app/src/main/res/layout/item_chapter.xml +++ b/app/src/main/res/layout/item_chapter.xml @@ -3,88 +3,99 @@ 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:background="@drawable/selector_chapter_light"> + + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:paddingLeft="?android:attr/listPreferredItemPaddingLeft" + android:paddingRight="?android:attr/listPreferredItemPaddingRight" + android:paddingStart="?android:attr/listPreferredItemPaddingStart"> + + + + + + + + + - - - - - + android:layout_alignParentStart="true" + android:layout_alignParentTop="true" + android:layout_alignWithParentIfMissing="true" + android:layout_marginRight="30dp" + android:ellipsize="end" + android:gravity="center_vertical" + android:maxLines="1" + android:textSize="17sp" + tools:text="Title"/> - + + + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:paddingRight="?android:attr/listPreferredItemPaddingRight"> + + android:layout_alignParentTop="true" + android:background="?android:selectableItemBackground" + android:src="@drawable/ic_more_horiz_black_24dp" + />