Permalink
Browse files

Create new dashboard to show on empty outline view.

  • Loading branch information...
hdweiss committed Sep 9, 2012
1 parent 06cbdfc commit 7b1da07e108c322c2c60424b29d217fbcc8751e0
Showing with 188 additions and 144 deletions.
  1. +3 −0 lint.xml
  2. +145 −1 res/layout/outline.xml
  3. +0 −29 res/layout/outline_unconfigured.xml
  4. +1 −1 res/values/strings.xml
  5. +39 −113 src/com/matburt/mobileorg/Gui/OutlineActivity.java
View
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
+ <issue id="HardcodedText">
+ <ignore path="res/layout/outline.xml" />
+ </issue>
<issue id="MissingTranslation" severity="warning">
<ignore path="res/values-de" />
</issue>
View
@@ -2,11 +2,155 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:gravity="center"
android:orientation="vertical" >
<ListView
android:id="@+id/outline_list"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
android:fastScrollEnabled="true"
+ android:visibility="gone" />
+
+ <RelativeLayout
+ android:id="@+id/outline_list_empty"
android:layout_width="fill_parent"
- android:layout_height="fill_parent"/>
+ android:layout_height="fill_parent"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/EmptyMainText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_gravity="center_horizontal"
+ android:layout_margin="5dp"
+ android:text="@string/empty_main"
+ android:textSize="20dp" >
+ </TextView>
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerInParent="true"
+ android:layout_gravity="center"
+ android:orientation="vertical" >
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:baselineAligned="false"
+ android:orientation="horizontal" >
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="20dp"
+ android:layout_weight="1"
+ android:onClick="runShowSettings"
+ android:orientation="vertical" >
+
+ <ImageButton
+ android:id="@+id/outline_configure"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:background="@drawable/ic_menu_preferences"
+ android:contentDescription="Configure button" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:text="Settings"
+ android:textStyle="bold" >
+ </TextView>
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="20dp"
+ android:layout_weight="1"
+ android:orientation="vertical" >
+
+ <ImageButton
+ android:id="@+id/outline_synchronize"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:background="@drawable/ic_menu_refresh"
+ android:contentDescription="Configure button"
+ android:duplicateParentState="false"
+ android:onClick="runSynchronize" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:text="Synchronize"
+ android:textStyle="bold" >
+ </TextView>
+ </LinearLayout>
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:baselineAligned="false"
+ android:orientation="horizontal" >
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="20dp"
+ android:layout_weight="1"
+ android:onClick="runEditNewNodeActivity"
+ android:orientation="vertical" >
+
+ <ImageButton
+ android:id="@+id/outline_capture"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:background="@drawable/ic_menu_edit"
+ android:contentDescription="Configure button" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:text="Capture"
+ android:textStyle="bold" >
+ </TextView>
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="20dp"
+ android:layout_weight="1"
+ android:orientation="vertical" >
+
+ <ImageButton
+ android:id="@+id/outline_website"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:background="@drawable/icon"
+ android:contentDescription="Configure button"
+ android:onClick="runHelp" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:text="Website"
+ android:textStyle="bold" >
+ </TextView>
+ </LinearLayout>
+ </LinearLayout>
+ </LinearLayout>
+ </RelativeLayout>
+
</LinearLayout>
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" android:orientation="vertical"><TextView
- android:id="@+id/EmptyMainText"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:gravity="center"
- android:inputType="textMultiLine"
- android:text="@string/empty_main" >
-</TextView>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" android:orientation="horizontal">
- <Button
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_weight="1"
- android:id="@+id/dialog_run_sync"
- android:text="@string/menu_sync"/>
- <Button
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_weight="1"
- android:id="@+id/dialog_show_settings"
- android:text="@string/menu_settings"/>
- </LinearLayout>
-</LinearLayout>
View
@@ -28,7 +28,7 @@
<string name="yes">Yes</string>
<string name="no">No</string>
<string name="ok">OK</string>
- <string name="empty_main">You have not yet\nsynchronized your Org files</string>
+ <string name="empty_main">Welcome to MobileOrg</string>
<string name="error_bad_url">The url %s is not properly formatted</string>
<string name="error_dialog_title">Error</string>
<string name="node_edit_prompt">Are you sure you want to discard changes?</string>
Oops, something went wrong.

0 comments on commit 7b1da07

Please sign in to comment.