diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/fragment_pager_list.xml | 3 | ||||
-rw-r--r-- | res/layout/live_lock_screen_card.xml | 43 | ||||
-rw-r--r-- | res/values/dimens.xml | 2 | ||||
-rw-r--r-- | res/values/integers.xml | 1 | ||||
-rw-r--r-- | res/values/strings.xml | 1 |
5 files changed, 50 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> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index e5b909b..8eb7bcb 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -19,6 +19,8 @@ <dimen name="component_selection_content_height">@dimen/component_selection_content_width</dimen> <dimen name="component_selection_bootani_content_width">80dp</dimen> <dimen name="component_selection_bootani_content_height">142dp</dimen> + <dimen name="component_selection_live_lock_screen_content_width">80dp</dimen> + <dimen name="component_selection_live_lock_screen_content_height">142dp</dimen> <dimen name="component_margin_top">12dp</dimen> <dimen name="card_padding_top">4dp</dimen> diff --git a/res/values/integers.xml b/res/values/integers.xml index b2d17f3..30146dd 100644 --- a/res/values/integers.xml +++ b/res/values/integers.xml @@ -5,4 +5,5 @@ <resources> <integer name="default_items_per_page">4</integer> <integer name="bootani_items_per_page">3</integer> + <integer name="live_lock_screen_items_per_page">3</integer> </resources>
\ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 7326940..88b417e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -31,6 +31,7 @@ <string name="navbar_label">Navigation</string> <string name="wallpaper_label">Wallpaper</string> <string name="lockscreen_label">Lockscreen wallpaper</string> + <string name="live_lock_screen_label">Live lock screen</string> <string name="style_label">Controls</string> <string name="boot_animation_label">Boot animation</string> <string name="alarm_label">Alarm</string> |