summaryrefslogtreecommitdiffstats
path: root/res/layout/icon_card.xml
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-07-29 12:15:56 -0700
committerClark Scheff <clark@cyngn.com>2014-07-29 13:36:38 -0700
commit89df9342c934e750c11d1402f4b5c51b34defdec (patch)
treea132efce032474022c0bac3772e96268e5a089e7 /res/layout/icon_card.xml
parente71e42f7304f5e6ba563a48de4ce1e70c94776ef (diff)
downloadpackages_apps_ThemeChooser-89df9342c934e750c11d1402f4b5c51b34defdec.tar.gz
packages_apps_ThemeChooser-89df9342c934e750c11d1402f4b5c51b34defdec.tar.bz2
packages_apps_ThemeChooser-89df9342c934e750c11d1402f4b5c51b34defdec.zip
Remove v1 code and resources and refactor v2 chooser.
Change-Id: Ic617365b3d26944e11c592b1508b4170ddb2871e
Diffstat (limited to 'res/layout/icon_card.xml')
-rw-r--r--res/layout/icon_card.xml47
1 files changed, 47 insertions, 0 deletions
diff --git a/res/layout/icon_card.xml b/res/layout/icon_card.xml
new file mode 100644
index 0000000..dc4d115
--- /dev/null
+++ b/res/layout/icon_card.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<com.cyngn.theme.chooser.ComponentCardView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/icon_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:padding="0dp"
+ android:layout_marginTop="@dimen/collapsed_icon_card_margin_top"
+ android:background="@drawable/theme_component_bg_transition">
+ <TextView
+ android:id="@+id/label"
+ android:layout_width="match_parent"
+ android:layout_height="24dp"
+ android:visibility="gone"
+ android:text="@string/icon_label"
+ style="@style/card_label"/>
+ <LinearLayout
+ android:id="@+id/icon_preview_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ >
+ <Space android:layout_width="30dp" android:layout_height="match_parent"/>
+ <ImageView
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ android:scaleType="fitCenter"
+ android:src="@drawable/comp_icon1"
+ />
+ <Space android:layout_width="30dp" android:layout_height="match_parent"/>
+ <ImageView
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ android:scaleType="fitCenter"
+ android:src="@drawable/comp_icon2"
+ />
+ <Space android:layout_width="30dp" android:layout_height="match_parent"/>
+ <ImageView
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ android:scaleType="fitCenter"
+ android:src="@drawable/comp_icon3"
+ />
+ <Space android:layout_width="30dp" android:layout_height="match_parent"/>
+ </LinearLayout>
+</com.cyngn.theme.chooser.ComponentCardView> \ No newline at end of file