summaryrefslogtreecommitdiffstats
path: root/res/layout/app_drawer_item.xml
diff options
context:
space:
mode:
authorLinus Lee <llee@cyngn.com>2015-03-24 17:15:10 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-04-02 00:56:26 +0000
commite002b691b3233629598c77ef50f1ef91eb1877f0 (patch)
tree11c849d031fa02162471b3aa1df40e6e9a9df77b /res/layout/app_drawer_item.xml
parenta9f83600fe59ea8bf65ae6dca8dc5239c529de7b (diff)
downloadandroid_packages_apps_Trebuchet-e002b691b3233629598c77ef50f1ef91eb1877f0.tar.gz
android_packages_apps_Trebuchet-e002b691b3233629598c77ef50f1ef91eb1877f0.tar.bz2
android_packages_apps_Trebuchet-e002b691b3233629598c77ef50f1ef91eb1877f0.zip
App drawer: add animations and letters to make things pretty
Change-Id: Iaf6718893e09df715b4524b864be9a7c22addc59
Diffstat (limited to 'res/layout/app_drawer_item.xml')
-rw-r--r--res/layout/app_drawer_item.xml58
1 files changed, 34 insertions, 24 deletions
diff --git a/res/layout/app_drawer_item.xml b/res/layout/app_drawer_item.xml
index 08043eb1f..43e2562ae 100644
--- a/res/layout/app_drawer_item.xml
+++ b/res/layout/app_drawer_item.xml
@@ -14,34 +14,44 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:autofit="http://schemas.android.com/apk/res-auto"
- android:orientation="vertical"
android:splitMotionEvents="false"
android:layout_width="match_parent"
android:layout_height="wrap_content">
+ <!-- Layout in back to front render order -->
<LinearLayout
- android:layout_marginTop="10dp"
+ android:id="@+id/drawer_item_flow"
+ android:layout_alignParentRight="true"
+ android:paddingTop="10dp"
+ android:layout_toRightOf="@+id/drawer_item_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="horizontal" >
- <com.android.launcher3.AutoFitTextView
- android:id="@+id/drawer_item_title"
- android:layout_width="30dp"
- android:layout_height="wrap_content"
- android:layout_marginLeft="10dp"
- android:includeFontPadding="false"
- android:gravity="start|top"
- android:singleLine="true"
- autofit:minTextSize="8sp"
- android:textSize="24sp"
- android:layout_gravity="center"
- android:fontFamily="sans-serif-light"
- android:textColor="@android:color/white"/>
- <LinearLayout
- android:id="@+id/drawer_item_flow"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal" />
- </LinearLayout>
-</LinearLayout>
+ android:orientation="horizontal" />
+
+ <View
+ android:id="@+id/fading_background"
+ android:alpha="0"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_alignTop="@id/drawer_item_flow"
+ android:layout_alignBottom="@id/drawer_item_flow"
+ android:background="@color/app_drawer_drag_background" />
+
+ <com.android.launcher3.AutoFitTextView
+ android:id="@+id/drawer_item_title"
+ android:layout_width="27dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="10dp"
+ android:layout_marginLeft="10dp"
+ android:layout_centerVertical="true"
+ android:includeFontPadding="false"
+ android:gravity="center"
+ android:singleLine="true"
+ autofit:minTextSize="8sp"
+ android:textSize="24sp"
+ android:layout_gravity="center"
+ android:fontFamily="sans-serif-light"
+ android:textColor="@android:color/white" />
+
+</RelativeLayout>