diff options
author | Raj Yengisetty <rajesh@cyngn.com> | 2015-04-09 17:54:00 -0700 |
---|---|---|
committer | Raj Yengisetty <rajesh@cyngn.com> | 2015-05-12 13:37:38 -0700 |
commit | 7f0a6204f692a1eda48e47a74e0481d6d7bc2191 (patch) | |
tree | a143e80d47a29026f39a35eb06e4dce93a174460 /res/layout/folder_icon.xml | |
parent | e301067845dd42ad778f4271e30e244bad457086 (diff) | |
download | android_packages_apps_Trebuchet-7f0a6204f692a1eda48e47a74e0481d6d7bc2191.tar.gz android_packages_apps_Trebuchet-7f0a6204f692a1eda48e47a74e0481d6d7bc2191.tar.bz2 android_packages_apps_Trebuchet-7f0a6204f692a1eda48e47a74e0481d6d7bc2191.zip |
Trebuchet: new folder UI v1
This change adds a number of new UI components and animations for
folders.
Designer: Hayden Schoen
Change-Id: I255cd4664432d84aebecf7e16ace5d9948573e27
Diffstat (limited to 'res/layout/folder_icon.xml')
-rw-r--r-- | res/layout/folder_icon.xml | 50 |
1 files changed, 43 insertions, 7 deletions
diff --git a/res/layout/folder_icon.xml b/res/layout/folder_icon.xml index fd45d7685..cdb67fd77 100644 --- a/res/layout/folder_icon.xml +++ b/res/layout/folder_icon.xml @@ -20,17 +20,53 @@ android:layout_height="match_parent" android:orientation="vertical" android:focusable="true" > - <ImageView + <RelativeLayout android:id="@+id/preview_background" - android:layout_gravity="center_horizontal" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:antialias="true" - android:src="@drawable/portal_ring_inner_holo"/> + android:layout_width="@dimen/folder_icon" + android:layout_height="@dimen/folder_icon" + android:layout_gravity="center_horizontal|top" + android:background="@drawable/folder_bg" > + <ImageView + android:id="@+id/folder_lock_image" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:src="@drawable/folder_locked" + android:scaleType="center" + android:visibility="invisible" /> + <ImageView + android:id="@+id/app_0" + android:layout_width="@dimen/folder_icon_app_preview" + android:layout_height="@dimen/folder_icon_app_preview" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:antialias="true"/> + <ImageView + android:id="@+id/app_1" + android:layout_width="@dimen/folder_icon_app_preview" + android:layout_height="@dimen/folder_icon_app_preview" + android:layout_alignParentTop="true" + android:layout_alignParentRight="true" + android:antialias="true"/> + <ImageView + android:id="@+id/app_2" + android:layout_width="@dimen/folder_icon_app_preview" + android:layout_height="@dimen/folder_icon_app_preview" + android:layout_alignParentLeft="true" + android:layout_alignParentBottom="true" + android:antialias="true"/> + <ImageView + android:id="@+id/app_3" + android:layout_width="@dimen/folder_icon_app_preview" + android:layout_height="@dimen/folder_icon_app_preview" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:antialias="true"/> + </RelativeLayout> + <com.android.launcher3.BubbleTextView style="@style/WorkspaceIcon" android:id="@+id/folder_icon_name" - android:layout_gravity="top" + android:layout_gravity="bottom" android:layout_width="match_parent" android:layout_height="match_parent" /> </com.android.launcher3.FolderIcon> |