summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-09-17 18:44:43 +0400
committerAndrew Dolgov <[email protected]>2012-09-17 18:44:43 +0400
commit8e3e5add776ddb8bcc9e6b349d4eb470e93d15e0 (patch)
treef51eb8296398fd1a7f12a7c8ea98e9e65935696e /res
parent3fd63d640aaa8248b69d035793681677ebc9a09c (diff)
implement most of offline menus
Diffstat (limited to 'res')
-rw-r--r--res/layout-sw600dp-port/main.xml61
-rw-r--r--res/layout-sw600dp/main.xml55
-rw-r--r--res/layout/login.xml (renamed from res/layout/online.xml)2
-rw-r--r--res/layout/main.xml27
-rw-r--r--res/menu/offline_menu.xml4
-rw-r--r--res/values-v11/style.xml2
6 files changed, 4 insertions, 147 deletions
diff --git a/res/layout-sw600dp-port/main.xml b/res/layout-sw600dp-port/main.xml
deleted file mode 100644
index 02732ba4..00000000
--- a/res/layout-sw600dp-port/main.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/main"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" >
-
- <LinearLayout
- android:id="@+id/fragment_container"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal" >
-
- <FrameLayout
- android:id="@+id/feeds_fragment"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="0.6"
- android:background="?feedlistBackground" >
- </FrameLayout>
-
- <LinearLayout
- android:id="@+id/vertical_fragment_container"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="0.4"
- android:orientation="vertical" >
-
- <FrameLayout
- android:id="@+id/headlines_fragment"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="0.30"
- android:background="?headlinesBackgroundSolid" >
- </FrameLayout>
-
- <FrameLayout
- android:id="@+id/article_fragment"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:background="?articleBackground"
- android:layout_weight="0.70" >
- </FrameLayout>
- </LinearLayout>
- </LinearLayout>
-
- <LinearLayout
- android:id="@+id/loading_container"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center"
- android:background="?loadingBackground"
- android:orientation="vertical" >
-
- <TextView
- android:id="@+id/loading_message"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_horizontal"
- android:text="@string/loading_message"
- android:textAppearance="?android:attr/textAppearanceLarge" />
- </LinearLayout>
-</FrameLayout> \ No newline at end of file
diff --git a/res/layout-sw600dp/main.xml b/res/layout-sw600dp/main.xml
deleted file mode 100644
index 9df4e048..00000000
--- a/res/layout-sw600dp/main.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/main"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- >
-
- <LinearLayout
- android:id="@+id/fragment_container"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal" >
-
- <FrameLayout
- android:id="@+id/feeds_fragment"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.3"
- android:background="?feedlistBackground" >
- </FrameLayout>
-
- <FrameLayout
- android:id="@+id/headlines_fragment"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.4"
- android:background="?headlinesBackground" >
- </FrameLayout>
-
- <FrameLayout
- android:id="@+id/article_fragment"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.6"
- android:background="?articleBackground" >
- </FrameLayout>
- </LinearLayout>
-
- <LinearLayout
- android:id="@+id/loading_container"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="?loadingBackground"
- android:gravity="center"
- android:orientation="vertical" >
-
- <TextView
- android:id="@+id/loading_message"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_horizontal"
- android:text="@string/loading_message"
- android:textAppearance="?android:attr/textAppearanceLarge" />
- </LinearLayout>
-
-</FrameLayout> \ No newline at end of file
diff --git a/res/layout/online.xml b/res/layout/login.xml
index d94aa147..d144df96 100644
--- a/res/layout/online.xml
+++ b/res/layout/login.xml
@@ -1,5 +1,5 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/online"
+ android:id="@+id/login"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
diff --git a/res/layout/main.xml b/res/layout/main.xml
deleted file mode 100644
index eb06058c..00000000
--- a/res/layout/main.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/main"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" >
-
- <LinearLayout
- android:id="@+id/loading_container"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center"
- android:orientation="vertical" >
-
- <TextView
- android:id="@+id/loading_message"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_horizontal"
- android:text="@string/loading_message" />
- </LinearLayout>
-
- <FrameLayout
- android:id="@+id/fragment_container"
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
- </FrameLayout>
-
-</LinearLayout> \ No newline at end of file
diff --git a/res/menu/offline_menu.xml b/res/menu/offline_menu.xml
index ad756aac..069625c5 100644
--- a/res/menu/offline_menu.xml
+++ b/res/menu/offline_menu.xml
@@ -23,11 +23,11 @@
android:title="@string/menu_all_feeds"/>
</group>
<group android:id="@+id/menu_group_headlines" >
- <item
+ <!-- <item
android:id="@+id/go_online"
android:icon="@drawable/ic_menu_cloud"
android:title="@string/go_online"
- android:visible="false"/>
+ android:visible="false"/> -->
<item
android:id="@+id/search"
android:actionViewClass="android.widget.SearchView"
diff --git a/res/values-v11/style.xml b/res/values-v11/style.xml
index 2d49b8c4..6b3d9e2c 100644
--- a/res/values-v11/style.xml
+++ b/res/values-v11/style.xml
@@ -28,7 +28,7 @@
<item name="feedlistBackground">@drawable/ics_divider_vertical</item>
<item name="unreadCounterColor">#303030</item>
<item name="headlinesBackground">@drawable/headlines_dark</item>
- <item name="headlinesBackgroundSolid">@android:color/transparent</item>
+ <item name="headlinesBackgroundSolid">@drawable/headlines_dark</item>
<item name="articleBackground">@android:color/black</item>
<item name="headlineSelectedBackground">@drawable/headline_row_selected_dark</item>
<item name="headlineSelectedBackgroundSolid">@color/ics_cyan</item>