summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-05-10 15:40:02 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-05-10 15:40:02 -0700
commit8075e388502f0abed3a7cc214188b44fcc453509 (patch)
treeb5848b2f8512be75ff1bdef5a76a771fab439b27 /res/layout
parent519d22840ea587988214a625dc8106e1302ac4a9 (diff)
parent71efc2bbf08574425a387c992e24cb9eaf0a6e6c (diff)
downloadpackages_apps_Browser-8075e388502f0abed3a7cc214188b44fcc453509.zip
packages_apps_Browser-8075e388502f0abed3a7cc214188b44fcc453509.tar.gz
packages_apps_Browser-8075e388502f0abed3a7cc214188b44fcc453509.tar.bz2
Merge "Initial pass at collapsable bookmarks"
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/bookmark_grid_row.xml24
-rw-r--r--res/layout/bookmark_group_view.xml38
-rw-r--r--res/layout/bookmark_thumbnail.xml11
-rw-r--r--res/layout/bookmarks.xml16
4 files changed, 73 insertions, 16 deletions
diff --git a/res/layout/bookmark_grid_row.xml b/res/layout/bookmark_grid_row.xml
new file mode 100644
index 0000000..669cff3
--- /dev/null
+++ b/res/layout/bookmark_grid_row.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingLeft="10dp"
+ android:paddingRight="10dp">
+</LinearLayout>
+
diff --git a/res/layout/bookmark_group_view.xml b/res/layout/bookmark_group_view.xml
new file mode 100644
index 0000000..e6c9628
--- /dev/null
+++ b/res/layout/bookmark_group_view.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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:layout_width="match_parent"
+ android:layout_height="?android:attr/listPreferredItemHeight"
+ android:orientation="horizontal"
+ android:background="?android:attr/listChoiceBackgroundIndicator">
+
+ <TextView
+ android:id="@+id/group_name"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:paddingLeft="50dp"
+ android:gravity="center_vertical" />
+
+ <FrameLayout
+ android:id="@+id/crumb_holder"
+ android:paddingLeft="16dp"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+</LinearLayout>
+
diff --git a/res/layout/bookmark_thumbnail.xml b/res/layout/bookmark_thumbnail.xml
index c545fa4..fcff322 100644
--- a/res/layout/bookmark_thumbnail.xml
+++ b/res/layout/bookmark_thumbnail.xml
@@ -14,11 +14,12 @@
limitations under the License.
-->
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
+<com.android.browser.view.BookmarkContainer xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
android:orientation="vertical"
- android:padding="0dip"
+ android:padding="8dip"
+ android:background="@drawable/bookmark_thumb_selector"
>
<ImageView
@@ -59,4 +60,4 @@
android:textColor="#AAAAAA"
/>
-</RelativeLayout>
+</com.android.browser.view.BookmarkContainer>
diff --git a/res/layout/bookmarks.xml b/res/layout/bookmarks.xml
index 81327e4..bcabc03 100644
--- a/res/layout/bookmarks.xml
+++ b/res/layout/bookmarks.xml
@@ -33,20 +33,14 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
- <GridView
+ <com.android.browser.view.BookmarkExpandableGridView
android:id="@+id/grid"
- android:layout_width="wrap_content"
+ android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
- android:horizontalSpacing="@dimen/combo_horizontalSpacing"
- android:verticalSpacing="40dip"
- android:scrollbarStyle="insideInset"
- android:listSelector="@drawable/bookmark_thumb_selector"
- android:drawSelectorOnTop="true"
- android:focusable="true"
- android:focusableInTouchMode="true"
- android:numColumns="auto_fit"
- android:stretchMode="spacingWidth" />
+ android:childDivider="@android:color/transparent"
+ android:divider="@android:color/transparent"
+ android:dividerHeight="0dp" />
<ListView
android:id="@+id/list"
android:layout_width="match_parent"