diff options
author | Winson Chung <winsonc@google.com> | 2011-06-15 19:51:24 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-06-24 10:49:03 -0700 |
commit | fd3385fe9e0f034b04f99d5d59a58d74fe040da4 (patch) | |
tree | 6ea22637ec38883c8cef8318d4a6e312f32b8656 /res/layout | |
parent | 4e076545e4ccdbd3c045a3fa33869a2b7519a0cc (diff) | |
download | packages_apps_trebuchet-fd3385fe9e0f034b04f99d5d59a58d74fe040da4.zip packages_apps_trebuchet-fd3385fe9e0f034b04f99d5d59a58d74fe040da4.tar.gz packages_apps_trebuchet-fd3385fe9e0f034b04f99d5d59a58d74fe040da4.tar.bz2 |
Using GridLayout in AppsCustomize widgets tab.
- Starting to implement new widgets design
- Hiding outlines in phone ui while dragging
- Making the tab bar show only when we have items as well
Change-Id: Ic027f9ba83fc0982f2f92a90412f050a8e248f9c
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/apps_customize_pane.xml | 1 | ||||
-rw-r--r-- | res/layout/apps_customize_widget.xml | 87 |
2 files changed, 42 insertions, 46 deletions
diff --git a/res/layout/apps_customize_pane.xml b/res/layout/apps_customize_pane.xml index 1b8be80..8361d16 100644 --- a/res/layout/apps_customize_pane.xml +++ b/res/layout/apps_customize_pane.xml @@ -23,6 +23,7 @@ <!-- The layout_width of the tab bar gets overriden to align the content with the text in the tabs in AppsCustomizeTabHost. --> <FrameLayout + android:id="@+id/tabs_container" android:layout_width="wrap_content" android:layout_height="@dimen/qsb_bar_height" android:layout_gravity="center_horizontal"> diff --git a/res/layout/apps_customize_widget.xml b/res/layout/apps_customize_widget.xml index 38973b5..44f6ae1 100644 --- a/res/layout/apps_customize_widget.xml +++ b/res/layout/apps_customize_widget.xml @@ -28,58 +28,53 @@ android:background="@drawable/focusable_view_bg" android:focusable="true"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="4dp" + android:orientation="vertical" + android:background="@drawable/widget_info_bg"> + <!-- The name of the widget. --> + <TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/widget_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:gravity="left|bottom" + + android:textColor="#FFBBBBBB" + android:textSize="14sp" + android:shadowColor="#FF000000" + android:shadowDx="0.0" + android:shadowDy="1.0" + android:shadowRadius="1.0" + + android:maxLines="2" + android:fadingEdge="horizontal" /> + + <!-- The original dimensions of the widget (can't be the same text as above due to different + style. --> + <TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/widget_dims" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:gravity="left|bottom" + + android:textColor="#FF999999" + android:textSize="12sp" + android:shadowColor="#99000000" + android:shadowDx="0.0" + android:shadowDy="1.0" + android:shadowRadius="1.0" /> + </LinearLayout> + <!-- The icon of the widget. --> <ImageView android:id="@+id/widget_preview" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" - android:paddingBottom="5dp" android:adjustViewBounds="true" android:scaleType="fitStart" /> - - <!-- The divider image. - This view is removed in PagedViewWidget.java in the Phone UI. --> - <ImageView - android:id="@+id/divider" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="0" - android:paddingTop="10dp" - android:paddingBottom="10dp" - android:src="@drawable/widget_divider" /> - - <!-- The name of the widget. --> - <TextView xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/widget_name" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="0" - android:gravity="left|bottom" - - android:textColor="#FFFFFFFF" - android:textSize="14sp" - android:shadowColor="#FF000000" - android:shadowDx="0.0" - android:shadowDy="1.0" - android:shadowRadius="1.0" - - android:maxLines="2" - android:fadingEdge="horizontal" /> - - <!-- The original dimensions of the widget (can't be the same text as above due to different - style. --> - <TextView xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/widget_dims" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="0" - android:gravity="left|bottom" - - android:textColor="#FF999999" - android:textSize="14sp" - android:shadowColor="#99000000" - android:shadowDx="0.0" - android:shadowDy="1.0" - android:shadowRadius="1.0" /> </com.android.launcher2.PagedViewWidget> |