Use favicons in the tab page instead of a snapshot.
Remove the FakeWebView and all the picture stuff from the picker data. Use the
favicon in a layout similar to history and bookmarks. Add tab_view_add_tab.xml
to have a simpler layout for the "new tab" item in the list.
diff --git a/res/layout/tab_view.xml b/res/layout/tab_view.xml
index 1f01d79..f6b7af3 100644
--- a/res/layout/tab_view.xml
+++ b/res/layout/tab_view.xml
@@ -21,12 +21,15 @@
android:orientation="horizontal"
android:gravity="center_vertical"
>
- <com.android.browser.FakeWebView android:id="@+id/screen_shot"
- android:layout_width="40dip"
- android:layout_height="40dip"
- android:layout_marginLeft="8dip"
- android:layout_marginRight="8dip"
- />
+ <!-- This ImageView has the same width as the ImageView in
+ tab_view_add_tab.xml. -->
+ <ImageView android:id="@+id/favicon"
+ android:layout_width="20dip"
+ android:layout_height="20dip"
+ android:layout_marginLeft="18dip"
+ android:layout_marginRight="18dip"
+ android:background="@drawable/fav_icn_background"
+ android:padding="2dip"/>
<LinearLayout
android:layout_width="0dip"
android:layout_height="wrap_content"