summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2010-09-12 08:17:50 -0700
committerAmith Yamasani <yamasani@google.com>2010-09-12 11:47:26 -0700
commitb61cf51d850d37a4d82b93b8ee0d190930421a46 (patch)
treeec794fc2423782c419a4e6d7508fefa2c8160c38 /res
parent60133dd03657354e06fa3aa7e6041862f8ce20a8 (diff)
downloadpackages_apps_Settings-b61cf51d850d37a4d82b93b8ee0d190930421a46.zip
packages_apps_Settings-b61cf51d850d37a4d82b93b8ee0d190930421a46.tar.gz
packages_apps_Settings-b61cf51d850d37a4d82b93b8ee0d190930421a46.tar.bz2
Breadcrumbs in the action bar for navigating up one level and showing current title.
Change-Id: I595e06549b888bd67c6dddd599a4cc77416c3a41
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/nav_divider.pngbin0 -> 1012 bytes
-rw-r--r--res/drawable-mdpi/nav_divider.pngbin0 -> 2846 bytes
-rw-r--r--res/layout/settings_actionbar.xml64
3 files changed, 64 insertions, 0 deletions
diff --git a/res/drawable-hdpi/nav_divider.png b/res/drawable-hdpi/nav_divider.png
new file mode 100644
index 0000000..7ca3e61
--- /dev/null
+++ b/res/drawable-hdpi/nav_divider.png
Binary files differ
diff --git a/res/drawable-mdpi/nav_divider.png b/res/drawable-mdpi/nav_divider.png
new file mode 100644
index 0000000..c9413d7
--- /dev/null
+++ b/res/drawable-mdpi/nav_divider.png
Binary files differ
diff --git a/res/layout/settings_actionbar.xml b/res/layout/settings_actionbar.xml
new file mode 100644
index 0000000..6388025
--- /dev/null
+++ b/res/layout/settings_actionbar.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:padding="4dip"
+ android:gravity="center_vertical"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent">
+
+ <!-- ImageView
+ android:src="@drawable/ic_launcher_settings"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:layout_marginLeft="4dip"
+ android:layout_marginRight="4dip"
+ /-->
+
+ <view class="com.android.settings.Settings$BreadCrumbs"
+ android:id="@+id/bread_crumbs"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:orientation="horizontal">
+
+ <TextView android:id="@+id/level_up_title"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ style="?android:attr/textAppearanceMediumInverse"
+ />
+
+ <ImageView
+ android:id="@+id/level_divider"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_marginTop="4dip"
+ android:layout_marginBottom="4dip"
+ android:layout_marginLeft="12dip"
+ android:layout_marginRight="12dip"
+ android:src="@drawable/nav_divider"/>
+
+ <TextView android:id="@+id/level_current_title"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ style="?android:attr/textAppearanceMediumInverse"
+ />
+ </view>
+</LinearLayout>