From 6cc1443a27a4be762e4b53deb464d15a99d698ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Tue, 28 Apr 2015 16:45:17 +0200 Subject: Remove the "provider:" label, simplifying layout --- app/src/main/res/layout-xlarge/dashboard.xml | 97 +++++++++------------------- app/src/main/res/layout/dashboard.xml | 39 ++++------- 2 files changed, 44 insertions(+), 92 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout-xlarge/dashboard.xml b/app/src/main/res/layout-xlarge/dashboard.xml index 268bd3f9..3c93a04c 100644 --- a/app/src/main/res/layout-xlarge/dashboard.xml +++ b/app/src/main/res/layout-xlarge/dashboard.xml @@ -5,80 +5,45 @@ android:layout_height="match_parent" android:orientation="vertical" android:layout_marginLeft="10sp" + android:layout_marginStart="10sp" android:layout_marginTop="10sp" tools:context=".Dashboard" > - - - - - - - - - - - - - - + - - + android:layout_marginLeft="32dp" + android:layout_marginStart="32dp"> + + - - - - - - - - - + Date: Wed, 29 Apr 2015 12:25:24 +0200 Subject: Creating a user session fragment. I've separated the user session management to it, and encapsulated ProviderAPICommand into its own class. Putting the fragment statically in dashboard.xml isn't working, Android complains about it being duplicated, so I'm going to add it dynamically. --- app/src/main/res/layout/dashboard.xml | 28 ++++------------- app/src/main/res/layout/fragment_user_session.xml | 37 +++++++++++++++++++++++ app/src/main/res/values-es/strings.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- 4 files changed, 45 insertions(+), 24 deletions(-) create mode 100644 app/src/main/res/layout/fragment_user_session.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/dashboard.xml b/app/src/main/res/layout/dashboard.xml index d76ccbec..30074b6a 100644 --- a/app/src/main/res/layout/dashboard.xml +++ b/app/src/main/res/layout/dashboard.xml @@ -18,29 +18,13 @@ android:singleLine="true" android:text="@string/provider_label_none" android:textAppearance="?android:attr/textAppearanceMedium" /> - - - - - + + + + + + + + + + + +