diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/bookmark_thumb_selector.xml | 3 | ||||
-rw-r--r-- | res/layout/bookmark_grid_row.xml | 24 | ||||
-rw-r--r-- | res/layout/bookmark_group_view.xml | 38 | ||||
-rw-r--r-- | res/layout/bookmark_thumbnail.xml | 11 | ||||
-rw-r--r-- | res/layout/bookmarks.xml | 16 | ||||
-rw-r--r-- | res/values/ids.xml | 22 | ||||
-rw-r--r-- | res/values/strings.xml | 2 |
7 files changed, 98 insertions, 18 deletions
diff --git a/res/drawable/bookmark_thumb_selector.xml b/res/drawable/bookmark_thumb_selector.xml index d4a12a3..5509aba 100644 --- a/res/drawable/bookmark_thumb_selector.xml +++ b/res/drawable/bookmark_thumb_selector.xml @@ -14,8 +14,7 @@ limitations under the License. --> -<selector xmlns:android="http://schemas.android.com/apk/res/android" - android:exitFadeDuration="@android:integer/config_mediumAnimTime"> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/bookmarks_widget_thumb_selector_focused" /> <item android:state_pressed="true" android:drawable="@drawable/bookmark_thumb_selector_transition" /> <item android:drawable="@android:color/transparent" /> 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" diff --git a/res/values/ids.xml b/res/values/ids.xml new file mode 100644 index 0000000..d6b74bd --- /dev/null +++ b/res/values/ids.xml @@ -0,0 +1,22 @@ +<?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. +--> + +<resources> + <!-- IDs for BookmarkExpandableGridView --> + <item type="id" name="group_position" /> + <item type="id" name="child_position" /> + <item type="id" name="child_id" /> +</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index f3631d2..1efc39c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1002,4 +1002,6 @@ <string name="recover_no">No</string> <!-- Font size preview label [CHAR LIMIT=30] --> <string name="preview">Preview:</string> + <!-- Name for the user's unsynced, local bookmarks [CHAR LIMIT=50] --> + <string name="local_bookmarks">Local</string> </resources> |