More widget tweaks
Change-Id: I9233bbc2df9a88a4979d065b17b0a3943500c7cd
diff --git a/res/layout/bookmarkthumbnailwidget.xml b/res/layout/bookmarkthumbnailwidget.xml
index 2c94d32..e312a2a 100644
--- a/res/layout/bookmarkthumbnailwidget.xml
+++ b/res/layout/bookmarkthumbnailwidget.xml
@@ -13,50 +13,39 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<FrameLayout
+<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="4dip"
- android:paddingBottom="22dip"
- android:paddingLeft="13dip"
- android:paddingRight="13dip">
- <LinearLayout
+ android:paddingBottom="20dip"
+ android:paddingLeft="12dip"
+ android:paddingRight="12dip">
+ <GridView
+ android:id="@+id/bookmarks_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:orientation="vertical"
- android:padding="0dip">
- <ImageView android:background="@drawable/list_div_top_btm_bookmark_widget_holo"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_marginTop="2dip"
- android:layout_marginLeft="1dip"
- android:layout_marginRight="1dip"
- android:visibility="invisible" />
- <GridView
- android:id="@+id/bookmarks_list"
- android:layout_width="match_parent"
- android:layout_height="0dip"
- android:layout_weight="1"
- android:layout_marginLeft="5dip"
- android:layout_marginRight="5dip"
- android:numColumns="2"
- android:paddingTop="1dip"
- android:paddingBottom="1dip"
- android:paddingRight="0dip"
- android:paddingLeft="0dip"
- android:stretchMode="columnWidth"
- android:horizontalSpacing="@dimen/widgetHorizontalSpacing"
- android:verticalSpacing="@dimen/widgetVerticalSpacing"
- android:drawSelectorOnTop="true"
- android:listSelector="@drawable/bookmark_widget_thumb_selector"
- android:fadingEdgeLength="24dp" />
- <ImageView android:background="@drawable/list_div_top_btm_bookmark_widget_holo"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_marginBottom="3dip"
- android:layout_marginLeft="1dip"
- android:layout_marginRight="1dip"
- android:visibility="invisible" />
- </LinearLayout>
-</FrameLayout>
+ android:numColumns="2"
+ android:paddingBottom="6dip"
+ android:paddingRight="3dip"
+ android:paddingLeft="3dip"
+ android:stretchMode="columnWidth"
+ android:horizontalSpacing="@dimen/widgetHorizontalSpacing"
+ android:verticalSpacing="@dimen/widgetVerticalSpacing"
+ android:drawSelectorOnTop="true"
+ android:listSelector="@drawable/bookmark_widget_thumb_selector"
+ android:fadingEdgeLength="24dp" />
+
+ <ImageButton
+ android:id="@+id/app_shortcut"
+ android:layout_width="56dip"
+ android:layout_height="56dip"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentRight="true"
+ android:layout_marginRight="4dip"
+ android:layout_marginBottom="6dip"
+ android:scaleType="centerInside"
+ android:src="@mipmap/ic_launcher_browser"
+ android:background="@drawable/bookmark_widget_thumb_selector"
+ android:padding="4dip" />
+</RelativeLayout>