aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2011-10-27 00:37:39 -0500
committerAndy Doan <andy.doan@linaro.org>2011-10-27 01:50:33 -0500
commit46c60edce5506e0b78a0ccb48d9408ea40c7676f (patch)
tree4b35b30fbc2bc4a7a4a03ff6d060e3e688b7701a /res
parentbf6f99338f5815c405d78079541c2de1ec63c612 (diff)
downloadLinaroConnect-46c60edce5506e0b78a0ccb48d9408ea40c7676f.tar.gz
add support for showing personal schedule
This creates a class that can automate the logic of logging into summit.linaro.org and getting the user's key which is used in the url to download their iCal schedule
Diffstat (limited to 'res')
-rw-r--r--res/layout/my_schedule_unconfigured.xml84
-rw-r--r--res/values/strings.xml13
2 files changed, 97 insertions, 0 deletions
diff --git a/res/layout/my_schedule_unconfigured.xml b/res/layout/my_schedule_unconfigured.xml
new file mode 100644
index 0000000..6d9ef82
--- /dev/null
+++ b/res/layout/my_schedule_unconfigured.xml
@@ -0,0 +1,84 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical"
+ android:background="@color/main_bg"
+ android:paddingLeft="5px"
+>
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:textSize="14sp"
+ android:textStyle="bold"
+ android:gravity="center"
+ android:text="@string/my_schedule_lp"
+ />
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:text="@string/my_schedule_user"
+ />
+ <EditText
+ android:id="@+id/my_schedule_user"
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ />
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:text="@string/my_schedule_pass"
+ />
+ <EditText
+ android:id="@+id/my_schedule_pass"
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:inputType="textPassword"
+ />
+
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ >
+ <TextView
+ android:id="@+id/my_schedule_status"
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:layout_weight="2"
+ android:layout_gravity="center"
+ />
+ <Button
+ android:id="@+id/my_schedule_login"
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:layout_weight="3"
+ android:layout_gravity="right"
+ android:text="@string/my_schedule_login"
+ />
+ </LinearLayout>
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:textSize="14sp"
+ android:textStyle="bold"
+ android:text="@string/my_schedule_login_about"
+ />
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:background="@drawable/rounded"
+ android:paddingLeft="5px"
+ android:textColor="@color/linaro_green"
+ android:text="@string/my_schedule_info"
+ />
+
+ <WebView
+ android:id="@+id/my_schedule_webview"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ />
+
+</LinearLayout> \ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
index d3fb3b3..78057a8 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -3,4 +3,17 @@
<string name="app_name">Linaro Connect</string>
<string name="posting_refresh">Refresh</string>
<string name="schedule_item">Linaro Connect - Session</string>
+
+ <string name="schedule_mine">Linaro Connect - My Schedule</string>
+ <string name="my_schedule_lp">Launchpad Login</string>
+ <string name="my_schedule_user">Email:</string>
+ <string name="my_schedule_pass">Password:</string>
+ <string name="my_schedule_info">In order to access your schedule we\'ll need
+ to log into Launchpad one time. This will give the app a key that it can
+ retrieve your schedule with. No personal information will be saved.
+ </string>
+ <string name="my_schedule_login_about">About</string>
+ <string name="my_schedule_login">Log In</string>
+ <string name="my_schedule_login_busy">Authorizing...</string>
+ <string name="my_schedule_login_failed">Login failed! Try Again.</string>
</resources>