diff options
author | Jeff Hamilton <jham@android.com> | 2010-09-03 13:56:45 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-09-03 13:56:45 -0700 |
commit | 9ff6bfc39003783e148c04188a3af7e031e4a75a (patch) | |
tree | a96791f04e9b5dbf0cce96d5bea30490e2c525c4 /res | |
parent | 210cbcbf645180628358424e8cb81e6f21a681dc (diff) | |
parent | f3026374dccf7b491152946c5d0e42daec08d899 (diff) | |
download | packages_apps_Browser-9ff6bfc39003783e148c04188a3af7e031e4a75a.zip packages_apps_Browser-9ff6bfc39003783e148c04188a3af7e031e4a75a.tar.gz packages_apps_Browser-9ff6bfc39003783e148c04188a3af7e031e4a75a.tar.bz2 |
Merge "Make the bookmark thumbnails larger."
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/bookmark_thumbnail.xml | 33 | ||||
-rw-r--r-- | res/values-xlarge/dimensions.xml | 16 | ||||
-rw-r--r-- | res/values/dimensions.xml | 3 |
3 files changed, 22 insertions, 30 deletions
diff --git a/res/layout/bookmark_thumbnail.xml b/res/layout/bookmark_thumbnail.xml index 363e632..91d8db7 100644 --- a/res/layout/bookmark_thumbnail.xml +++ b/res/layout/bookmark_thumbnail.xml @@ -23,39 +23,12 @@ <ImageView android:id="@+id/thumb" android:src="@drawable/browser_thumbnail" - android:scaleType="center" - android:layout_height="wrap_content" - android:layout_width="wrap_content" + android:scaleType="centerCrop" + android:layout_height="@dimen/bookmarkThumbnailHeight" + android:layout_width="@dimen/bookmarkThumbnailWidth" android:layout_gravity="center" /> - <!-- FIXME: Want to have a gradient over the thumb --> - - <!-- This holds the star for addbookmark --> - <LinearLayout android:id="@+id/holder" - android:layout_height="match_parent" - android:layout_width="match_parent" - android:orientation="vertical" - android:background="#99000000" - android:gravity="center" - android:layout_alignBottom="@+id/thumb" - android:layout_alignTop="@+id/thumb" - > - <ImageView - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:src="@drawable/ic_list_bookmark" - /> - <TextView - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:textAppearance="?android:attr/textAppearanceSmall" - android:textStyle="bold" - android:textColor="@color/white" - android:text="@string/add_bookmark_short" - /> - </LinearLayout> - <TextView android:id="@+id/label" android:layout_width="match_parent" android:layout_height="wrap_content" diff --git a/res/values-xlarge/dimensions.xml b/res/values-xlarge/dimensions.xml new file mode 100644 index 0000000..602da0e --- /dev/null +++ b/res/values-xlarge/dimensions.xml @@ -0,0 +1,16 @@ +<?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. +--> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <dimen name="bookmarkThumbnailWidth">160dip</dimen> + <dimen name="bookmarkThumbnailHeight">180dip</dimen> +</resources>
\ No newline at end of file diff --git a/res/values/dimensions.xml b/res/values/dimensions.xml index 2fc3233..4d19a9f 100644 --- a/res/values/dimensions.xml +++ b/res/values/dimensions.xml @@ -18,4 +18,7 @@ <!-- The width of an unselected tab --> <dimen name="tab_width_unselected">300dp</dimen> + + <dimen name="bookmarkThumbnailWidth">90dip</dimen> + <dimen name="bookmarkThumbnailHeight">80dip</dimen> </resources>
\ No newline at end of file |