diff options
author | d34d <clark@cyngn.com> | 2015-10-09 15:58:51 -0700 |
---|---|---|
committer | d34d <clark@cyngn.com> | 2015-12-08 09:59:49 -0800 |
commit | ad1f28cd3fd66636b0f289630acd5f1cb8e1c627 (patch) | |
tree | 7e371e4019d7454b976741897f673428d15c2a02 /res/layout | |
parent | d23995b644d72cc531cb353cea60b30c2f788d43 (diff) | |
download | packages_apps_ThemeChooser-ad1f28cd3fd66636b0f289630acd5f1cb8e1c627.tar.gz packages_apps_ThemeChooser-ad1f28cd3fd66636b0f289630acd5f1cb8e1c627.tar.bz2 packages_apps_ThemeChooser-ad1f28cd3fd66636b0f289630acd5f1cb8e1c627.zip |
Add live lock screen support for dogefood
The final UX will combine both static lock screen wallpapers and
the new live lock screen with a banner indicating which are "live"
Change-Id: I26fc793930316296178437d1d98e6e645e17b7e5
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/fragment_pager_list.xml | 3 | ||||
-rw-r--r-- | res/layout/live_lock_screen_card.xml | 43 |
2 files changed, 46 insertions, 0 deletions
diff --git a/res/layout/fragment_pager_list.xml b/res/layout/fragment_pager_list.xml index ff76c80..9a635b4 100644 --- a/res/layout/fragment_pager_list.xml +++ b/res/layout/fragment_pager_list.xml @@ -174,6 +174,9 @@ /> <Space android:layout_width="match_parent" android:layout_height="@dimen/expanded_card_margin_top" /> + <include layout="@layout/live_lock_screen_card" /> + <Space android:layout_width="match_parent" + android:layout_height="@dimen/expanded_card_margin_top" /> <include layout="@layout/style_card" /> <Space android:layout_width="match_parent" android:layout_height="@dimen/expanded_card_margin_top" /> diff --git a/res/layout/live_lock_screen_card.xml b/res/layout/live_lock_screen_card.xml new file mode 100644 index 0000000..33cd847 --- /dev/null +++ b/res/layout/live_lock_screen_card.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2014 Cyanogen, Inc. +--> +<com.cyngn.theme.chooser.ComponentCardView + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/live_lock_screen_preview_container" + android:layout_width="match_parent" + android:layout_height="320dp" + android:orientation="vertical" + android:background="@drawable/card_bootanim_bg"> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent"> + <!-- Need to set a valid source so this view can generate a valid bitmap + from drawing cache, otherwise it's size is 0x0 and a null bitmap is returned --> + <ImageView + android:id="@+id/live_lock_screen_preview" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/expanded_card_margin_top" + android:adjustViewBounds="true" + android:layout_gravity="center" + android:src="@drawable/card_bootanim_bg"/> + <com.cyngn.theme.widget.LatoTextView + android:id="@+id/label" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/live_lock_screen_label" + style="@style/card_label"/> + <LinearLayout + android:id="@+id/empty" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:visibility="gone"> + <ImageView + android:layout_width="20dp" + android:layout_height="20dp" + android:src="@drawable/ic_addcomponent"/> + </LinearLayout> + </FrameLayout> +</com.cyngn.theme.chooser.ComponentCardView> |