diff options
author | Winson Chung <winsonc@google.com> | 2010-09-26 17:26:45 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2010-09-27 09:34:15 -0700 |
commit | d0d43010c7a091b6ade407d30e490527a8d16120 (patch) | |
tree | 164907441c3ca3b84a08dc0da6ec12b4707c4635 /res/layout-xlarge | |
parent | 28750fba6a2d141eb9a1e566718c17236030b815 (diff) | |
download | packages_apps_trebuchet-d0d43010c7a091b6ade407d30e490527a8d16120.zip packages_apps_trebuchet-d0d43010c7a091b6ade407d30e490527a8d16120.tar.gz packages_apps_trebuchet-d0d43010c7a091b6ade407d30e490527a8d16120.tar.bz2 |
Adding tap-to-add behaviour to the customization drawer.
Change-Id: I5a0863a8df2a0b4855112eb29b40b6e7dd550db9
Diffstat (limited to 'res/layout-xlarge')
4 files changed, 27 insertions, 11 deletions
diff --git a/res/layout-xlarge/all_apps_paged_view_application.xml b/res/layout-xlarge/all_apps_paged_view_application.xml index bee13d6..8e53e06 100644 --- a/res/layout-xlarge/all_apps_paged_view_application.xml +++ b/res/layout-xlarge/all_apps_paged_view_application.xml @@ -23,7 +23,7 @@ launcher:checkedBlurColor="#FFBBE83C" launcher:checkedOutlineColor="#FF8CD2FF" - android:id="@+id/name" + android:id="@+id/application_icon" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" diff --git a/res/layout-xlarge/customize_paged_view_item.xml b/res/layout-xlarge/customize_paged_view_item.xml index 55779e5..e427345 100644 --- a/res/layout-xlarge/customize_paged_view_item.xml +++ b/res/layout-xlarge/customize_paged_view_item.xml @@ -14,8 +14,16 @@ limitations under the License. --> -<com.android.launcher2.PagedViewIcon xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/name" +<com.android.launcher2.PagedViewIcon + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" + + launcher:blurColor="#FF6B8CF0" + launcher:outlineColor="#FF8CD2FF" + launcher:checkedBlurColor="#FFBBE83C" + launcher:checkedOutlineColor="#FF8CD2FF" + + android:id="@+id/customize_icon" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" diff --git a/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml b/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml index 51f624a..6112532 100644 --- a/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml +++ b/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml @@ -14,8 +14,10 @@ limitations under the License. --> -<TextView xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/name" +<TextView + xmlns:android="http://schemas.android.com/apk/res/android" + + android:id="@+id/wallpaper_icon" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_vertical" diff --git a/res/layout-xlarge/customize_paged_view_widget.xml b/res/layout-xlarge/customize_paged_view_widget.xml index 4d70a12..e8f4ac9 100644 --- a/res/layout-xlarge/customize_paged_view_widget.xml +++ b/res/layout-xlarge/customize_paged_view_widget.xml @@ -13,7 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. --> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +<com.android.launcher2.PagedViewWidgetIcon + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" + android:layout_width="wrap_content" android:layout_height="match_parent" android:paddingLeft="12.5dp" @@ -21,11 +24,14 @@ android:paddingTop="40dp" android:paddingBottom="50dp" android:gravity="top" - android:orientation="vertical"> + android:orientation="vertical" + + launcher:checkedBlurColor="#FFDAFF71" + launcher:checkedOutlineColor="#FFCFFF9C"> <!-- The icon of the widget. --> <ImageView - android:id="@+id/icon" + android:id="@+id/widget_preview" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0" @@ -42,7 +48,7 @@ <!-- The name of the widget. --> <TextView xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/name" + android:id="@+id/widget_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="left" @@ -60,7 +66,7 @@ <!-- 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/dims" + android:id="@+id/widget_dims" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="left" @@ -71,4 +77,4 @@ android:shadowDx="0.0" android:shadowDy="1.0" android:shadowRadius="1.0" /> -</LinearLayout> +</com.android.launcher2.PagedViewWidgetIcon> |