summaryrefslogtreecommitdiffstats
path: root/res/layout/wallpaper_component_selection_item.xml
blob: 7f1428cca38bd0f91df2b3219e8c9aefacea0012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2014 Cyanogen, Inc.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:cyngn="http://schemas.android.com/apk/res/com.cyngn.theme.chooser"
    android:orientation="vertical"
    android:layout_width="wrap_content"
    android:layout_height="@dimen/component_selection_cell_height"
    android:background="@drawable/component_selection_selector">

    <FrameLayout
        android:id="@+id/wp_content"
        android:layout_width="@dimen/component_selection_content_width"
        android:layout_height="@dimen/component_selection_content_height"
        android:layout_marginTop="@dimen/component_margin_top"
        android:layout_gravity="center_horizontal">
        <ImageView
            android:id="@+id/icon"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleType="centerCrop"/>
        <View
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@drawable/wallpaper_border" />
        <LinearLayout
                android:id="@+id/live_lock_screen_badge"
                android:orientation="vertical"
                android:layout_width="@dimen/animated_lock_screen_badge_width"
                android:layout_height="@dimen/animated_lock_screen_badge_height"
                android:background="@android:color/white"
                android:layout_gravity="center_horizontal|bottom"
                android:visibility="gone">
            <com.cyngn.theme.widget.LatoTextView
                    android:layout_width="@dimen/animated_lock_screen_text_width"
                    android:layout_height="@dimen/animated_lock_screen_text_height"
                    android:includeFontPadding="false"
                    android:layout_gravity="center_horizontal"
                    android:layout_marginLeft="@dimen/animated_lock_screen_text_margin_left"
                    android:layout_marginRight="@dimen/animated_lock_screen_text_margin_right"
                    android:layout_marginTop="@dimen/animated_lock_screen_text_margin_top"
                    android:layout_marginBottom="@dimen/animated_lock_screen_text_margin_bottom"
                    style="@style/animated_lock_screen_badge_text_style"
                    cyngn:autoFitText="true"
                    android:text="@string/animated_lock_screen_badge_text"/>
        </LinearLayout>
    </FrameLayout>

    <com.cyngn.theme.widget.LatoTextView
        android:id="@+id/title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        style="@style/component_title"/>

</LinearLayout>