diff options
Diffstat (limited to 'res/layout/bookmark_thumbnail.xml')
-rw-r--r-- | res/layout/bookmark_thumbnail.xml | 42 |
1 files changed, 34 insertions, 8 deletions
diff --git a/res/layout/bookmark_thumbnail.xml b/res/layout/bookmark_thumbnail.xml index 5e7a27b..2f8a09d 100644 --- a/res/layout/bookmark_thumbnail.xml +++ b/res/layout/bookmark_thumbnail.xml @@ -14,7 +14,7 @@ limitations under the License. --> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:orientation="vertical" android:padding="4dip" @@ -23,21 +23,47 @@ <ImageView android:id="@+id/thumb" android:src="@drawable/blank" android:scaleType="center" - android:layout_width="fill_parent" - android:layout_height="fill_parent" + android:layout_width="100dip" + android:layout_height="80dip" /> -<!-- <ImageView android:id="@+id/fav" android:scaleType="center" android:layout_width="20dip" android:layout_height="20dip" + android:layout_alignBottom="@+id/thumb" + android:background="@color/white" /> ---> - - <TextView android:id="@+id/label" + <LinearLayout android:id="@+id/holder" + android:layout_height="wrap_content" android:layout_width="fill_parent" + android:orientation="horizontal" + android:background="#cc000000" + android:gravity="center" + android:layout_alignBottom="@+id/thumb" + > + <ImageView + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_marginTop="3dip" + android:layout_marginBottom="3dip" + android:src="@drawable/ic_tab_browser_bookmark_selected" + /> + <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> + <!-- Keep the width in sync with BrowserBookmarksPage and + BrowserActivity.updateScreenshot --> + <TextView android:id="@+id/label" + android:layout_width="100dip" android:layout_height="wrap_content" + android:layout_below="@+id/thumb" android:layout_gravity="bottom" android:textAppearance="?android:attr/textAppearanceSmall" android:textStyle="bold" @@ -50,4 +76,4 @@ android:scrollHorizontally="true" android:ellipsize="marquee" /> -</LinearLayout> +</RelativeLayout> |