From 771947536eb8b57f36e87fc4bdc1fe7e13ccb7ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 1 Jan 2014 21:08:41 +0100 Subject: [PATCH] Add categories to AppDetails, layout tweaks --- res/layout/appdetails.xml | 62 +++++++++++++++++---------- res/layout/applistitem.xml | 11 ++--- src/org/fdroid/fdroid/AppDetails.java | 3 ++ 3 files changed, 48 insertions(+), 28 deletions(-) diff --git a/res/layout/appdetails.xml b/res/layout/appdetails.xml index 0441cd54f..ac8c5e846 100644 --- a/res/layout/appdetails.xml +++ b/res/layout/appdetails.xml @@ -15,42 +15,58 @@ - - - - + + + + + + diff --git a/res/layout/applistitem.xml b/res/layout/applistitem.xml index 025e2348f..5f5dcd350 100644 --- a/res/layout/applistitem.xml +++ b/res/layout/applistitem.xml @@ -20,7 +20,6 @@ android:layout_height="fill_parent" android:paddingLeft="3dp" android:paddingRight="8dp" - android:paddingBottom="3dp" android:layout_toRightOf="@id/icon" android:layout_centerVertical="true" android:baselineAligned="false" > @@ -50,8 +49,8 @@ diff --git a/src/org/fdroid/fdroid/AppDetails.java b/src/org/fdroid/fdroid/AppDetails.java index af9b88d8b..4e2361257 100644 --- a/src/org/fdroid/fdroid/AppDetails.java +++ b/src/org/fdroid/fdroid/AppDetails.java @@ -448,6 +448,9 @@ public class AppDetails extends ListActivity { tv = (TextView) findViewById(R.id.license); tv.setText(app.license); + tv = (TextView) findViewById(R.id.categories); + tv.setText(app.categories.toString().replaceAll(",",", ")); + tv = (TextView) infoView.findViewById(R.id.description); /*