From cb47a0ea96a5a72605be2dad8b495e7ae62320ec Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Fri, 5 Dec 2014 10:56:11 +0100 Subject: [PATCH] Updated RSS feeds views to include Toolbar. More work later. --- app/build.gradle | 1 + app/src/main/AndroidManifest.xml | 2 +- .../core/gui/rss/RssfeedsActivity.java | 8 ++- .../core/gui/rss/RssitemsActivity.java | 9 ++- .../res/layout-w600dp/activity_torrents.xml | 17 +++++- .../res/layout-w900dp/activity_rssfeeds.xml | 56 ++++++++++++------- .../res/layout-w900dp/activity_torrents.xml | 17 +++++- app/src/main/res/layout/activity_rssfeeds.xml | 18 +++++- app/src/main/res/layout/activity_rssitems.xml | 22 ++++++-- app/src/main/res/layout/activity_torrents.xml | 18 +++++- app/src/main/res/layout/fragment_rssfeeds.xml | 8 ++- app/src/main/res/layout/list_item_rssfeed.xml | 20 ++++--- app/src/main/res/layout/list_item_rssitem.xml | 11 ++-- 13 files changed, 155 insertions(+), 52 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 9a658fb1..00e76632 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -50,6 +50,7 @@ dependencies { compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.+' compile 'com.android.support:appcompat-v7:21.0.0' compile 'com.android.support:support-annotations:20.0.0' + //compile 'com.getbase:floatingactionbutton:1.2.1' apt "org.androidannotations:androidannotations:3.1" } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 8378a6c6..4499a430 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -194,7 +194,7 @@ - + + . --> - + tools:context=".core.gui.rss.RssfeedsActivity_"> - - - + + + + - - + android:layout_below="@id/rssfeeds_toolbar" + android:baselineAligned="false" + android:orientation="horizontal"> + + + + + + diff --git a/app/src/main/res/layout-w900dp/activity_torrents.xml b/app/src/main/res/layout-w900dp/activity_torrents.xml index 011fbe5f..e449b112 100644 --- a/app/src/main/res/layout-w900dp/activity_torrents.xml +++ b/app/src/main/res/layout-w900dp/activity_torrents.xml @@ -1,10 +1,25 @@ + . --> - + tools:context=".core.gui.rss.RssfeedsActivity_" > + + + + - + diff --git a/app/src/main/res/layout/activity_rssitems.xml b/app/src/main/res/layout/activity_rssitems.xml index b233ad1f..c5276b65 100644 --- a/app/src/main/res/layout/activity_rssitems.xml +++ b/app/src/main/res/layout/activity_rssitems.xml @@ -15,17 +15,29 @@ You should have received a copy of the GNU General Public License along with Transdroid. If not, see . --> - + tools:context=".core.gui.rss.RssitemsActivity_"> + + + + + android:layout_below="@id/rssfeeds_toolbar" + tools:layout="@layout/fragment_rssitems"/> - + diff --git a/app/src/main/res/layout/activity_torrents.xml b/app/src/main/res/layout/activity_torrents.xml index 63819e15..1b6d65e4 100644 --- a/app/src/main/res/layout/activity_torrents.xml +++ b/app/src/main/res/layout/activity_torrents.xml @@ -1,5 +1,21 @@ - + + . --> + android:layout_height="match_parent"> + android:visibility="gone"/> + android:visibility="gone" + tools:visibility="visible"/> diff --git a/app/src/main/res/layout/list_item_rssfeed.xml b/app/src/main/res/layout/list_item_rssfeed.xml index 5bb977ed..f9e60ede 100644 --- a/app/src/main/res/layout/list_item_rssfeed.xml +++ b/app/src/main/res/layout/list_item_rssfeed.xml @@ -21,36 +21,38 @@ android:layout_height="wrap_content" android:background="?attr/activatable_background" android:orientation="horizontal" - android:paddingBottom="@dimen/margin_half" + android:paddingBottom="@dimen/margin_default" android:paddingLeft="@dimen/margin_default" android:paddingRight="@dimen/margin_default" - android:paddingTop="@dimen/margin_half" > + android:paddingTop="@dimen/margin_default" > + android:gravity="center_vertical" + android:textIsSelectable="false" + tools:text="Custom RSS Feed"/> + android:textIsSelectable="false" + tools:text="28"/> . --> + android:paddingTop="@dimen/margin_default"> + android:textSize="@dimen/text_enlarged" + tools:text="Test RSS Item Text Here"/> + android:textSize="@dimen/text_small" + tools:text="25-12-2015"/>