summaryrefslogtreecommitdiffstats
path: root/res/layout/title_card.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout/title_card.xml')
-rw-r--r--res/layout/title_card.xml105
1 files changed, 105 insertions, 0 deletions
diff --git a/res/layout/title_card.xml b/res/layout/title_card.xml
new file mode 100644
index 0000000..61efa88
--- /dev/null
+++ b/res/layout/title_card.xml
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2016 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/title_card"
+ android:layout_width="@dimen/theme_preview_width"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:background="@drawable/card_themepreview_bg">
+ <LinearLayout
+ android:id="@+id/title_layout"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/title_card_height"
+ android:alpha="0">
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_gravity="center_vertical"
+ android:layout_marginStart="16dp"
+ android:orientation="vertical">
+ <org.cyanogenmod.theme.widget.LatoTextView
+ android:id="@+id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:textColor="@color/theme_title_text_color"/>
+ <org.cyanogenmod.theme.widget.LatoTextView
+ android:id="@+id/author"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:textColor="@color/theme_author_text_color"
+ android:textSize="14dp" />
+ </LinearLayout>
+ <ImageView
+ android:id="@+id/customize"
+ android:layout_width="47dp"
+ android:layout_height="match_parent"
+ android:scaleType="center"
+ android:src="@drawable/ic_theme_customize"
+ android:background="@drawable/theme_card_action_item_background"/>
+
+ <ImageView
+ android:id="@+id/overflow"
+ android:layout_width="36dp"
+ android:layout_height="match_parent"
+ android:layout_marginStart="1dp"
+ android:layout_marginEnd="8dp"
+ android:scaleType="center"
+ android:src="@drawable/ic_overflow_dark"
+ android:visibility="gone"
+ android:background="@drawable/theme_card_action_item_background"/>
+
+ <ImageView
+ android:id="@+id/delete"
+ android:layout_width="36dp"
+ android:layout_height="match_parent"
+ android:layout_marginStart="1dp"
+ android:layout_marginEnd="8dp"
+ android:scaleType="center"
+ android:src="@drawable/ic_theme_delete"
+ android:background="@drawable/theme_card_action_item_background"/>
+
+ <ImageView
+ android:id="@+id/reset"
+ android:layout_width="36dp"
+ android:layout_height="match_parent"
+ android:layout_marginStart="1dp"
+ android:layout_marginEnd="8dp"
+ android:scaleType="center"
+ android:src="@drawable/ic_theme_reset"
+ android:visibility="gone"
+ android:background="@drawable/theme_card_action_item_background"/>
+ </LinearLayout>
+ <ProgressBar
+ android:id="@+id/apply_progress"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/apply_progress_height"
+ android:layout_gravity="center_vertical|right"
+ android:paddingStart="@dimen/apply_progress_padding"
+ android:paddingEnd="@dimen/apply_progress_padding"
+ android:indeterminate="false"
+ android:max="100"
+ android:progress="0"
+ android:progressDrawable="@drawable/apply_progress_bar"
+ android:visibility="gone"
+ style="@android:style/Widget.ProgressBar.Horizontal"/>
+</FrameLayout>