summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorSean Leonard <meanderingcode@aetherislands.net>2013-01-30 23:35:42 -0700
committerSean Leonard <meanderingcode@aetherislands.net>2013-01-30 23:35:42 -0700
commitb6e47ac59c3e853b23d4392eec33bbeb2f068f17 (patch)
treeb8beb6cd90ac234df8a2f8016af7d9a6e95d7fab /res
parentfea68f17a1a69bc3710e1b1b743e0d0ded95234a (diff)
Add EIP Service item in Dashboard
Diffstat (limited to 'res')
-rw-r--r--res/layout/client_dashboard.xml23
-rw-r--r--res/layout/eip_overview.xml27
-rwxr-xr-xres/values/strings.xml1
3 files changed, 51 insertions, 0 deletions
diff --git a/res/layout/client_dashboard.xml b/res/layout/client_dashboard.xml
index 599a0972..9d9b7a40 100644
--- a/res/layout/client_dashboard.xml
+++ b/res/layout/client_dashboard.xml
@@ -53,4 +53,27 @@
</LinearLayout>
</LinearLayout>
+
+ <View
+ android:layout_width="wrap_content"
+ android:layout_height="2dp"
+ android:layout_marginBottom="15dp"
+ android:background="@android:drawable/divider_horizontal_bright" />
+
+ <LinearLayout
+ android:id="@+id/servicesCollection"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="0.11"
+ android:orientation="vertical" >
+
+ <ViewStub
+ android:id="@+id/eipOverviewStub"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:inflatedId="@+id/eipOverview"
+ android:layout="@layout/eip_overview" />
+
+ </LinearLayout>
+
</LinearLayout> \ No newline at end of file
diff --git a/res/layout/eip_overview.xml b/res/layout/eip_overview.xml
new file mode 100644
index 00000000..d8defcbc
--- /dev/null
+++ b/res/layout/eip_overview.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_marginTop="10dp" >
+
+ <TextView
+ android:id="@+id/eipType"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentTop="true"
+ android:layout_marginBottom="10dp"
+ android:layout_marginLeft="15dp"
+ android:layout_toLeftOf="@+id/eipSwitch"
+ android:text="@string/eip_type_active"
+ android:textAppearance="?android:attr/textAppearanceLarge" />
+
+ <Switch
+ android:id="@+id/eipSwitch"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentTop="true"
+ android:layout_marginRight="10dp" />
+
+</RelativeLayout> \ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 606cb3bb..f18c9920 100755
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -257,5 +257,6 @@
<string name="title_activity_dashboard">LEAP Dashboard</string>
<string name="provider_label">Provider:</string>
<string name="provider_label_none">No provider configured</string>
+ <string name="eip_type_active">EIP</string>
</resources> \ No newline at end of file