summaryrefslogtreecommitdiffstats
path: root/res/layout/folder_teaser_item.xml
diff options
context:
space:
mode:
authorScott Kennedy <skennedy@google.com>2013-09-10 11:13:53 -0700
committerScott Kennedy <skennedy@google.com>2013-09-19 10:11:36 -0400
commit0e8dc84326ad3e6d146a203538665f98dd98f688 (patch)
treeb4e240f4ad801162991a96f0e0e9d43222c89935 /res/layout/folder_teaser_item.xml
parent708da72918ca9786cd7d1a43950791007de78be8 (diff)
downloadandroid_packages_apps_UnifiedEmail-0e8dc84326ad3e6d146a203538665f98dd98f688.tar.gz
android_packages_apps_UnifiedEmail-0e8dc84326ad3e6d146a203538665f98dd98f688.tar.bz2
android_packages_apps_UnifiedEmail-0e8dc84326ad3e6d146a203538665f98dd98f688.zip
Hierarchical folders in conversation list
Use something similar to the sectioned inbox teaser. Allow expanding/collapsing when there are too many folders. Bug: 9604590 Change-Id: I6cc79bd7c033bbf13c750e7720fe71227b38cc85
Diffstat (limited to 'res/layout/folder_teaser_item.xml')
-rw-r--r--res/layout/folder_teaser_item.xml92
1 files changed, 92 insertions, 0 deletions
diff --git a/res/layout/folder_teaser_item.xml b/res/layout/folder_teaser_item.xml
new file mode 100644
index 000000000..63c2abc07
--- /dev/null
+++ b/res/layout/folder_teaser_item.xml
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 The Android Open Source 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.
+-->
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/folder_teaser_item_background"
+ android:paddingTop="8dp" >
+
+ <ImageView
+ android:id="@+id/folder_imageView"
+ android:layout_width="48dp"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_centerVertical="true"
+ android:layout_marginLeft="16dp"
+ android:layout_marginRight="12dp"
+ android:layout_marginBottom="8dp"
+ android:background="@color/folder_teaser_icon_background"
+ android:baselineAlignBottom="true"
+ android:duplicateParentState="true" />
+
+ <View
+ android:id="@+id/frame_height_spacer"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:layout_below="@id/folder_imageView" />
+
+ <LinearLayout
+ android:id="@+id/text_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_toLeftOf="@+id/count_textView"
+ android:layout_toRightOf="@id/folder_imageView"
+ android:duplicateParentState="true"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/folder_textView"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:duplicateParentState="true"
+ android:includeFontPadding="false"
+ android:textColor="@color/teaser_main_text"
+ android:textSize="16sp"
+ android:textStyle="bold"
+ android:singleLine="true"
+ android:ellipsize="end" />
+
+ <TextView
+ android:id="@+id/senders_textView"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:duplicateParentState="true"
+ android:includeFontPadding="false"
+ android:fontFamily="sans-serif-light"
+ android:textColor="@color/folder_teaser_senders_text"
+ android:textSize="12sp"
+ android:singleLine="true"
+ android:ellipsize="end" />
+
+ </LinearLayout>
+
+ <TextView
+ android:id="@id/count_textView"
+ android:layout_width="wrap_content"
+ android:layout_height="24sp"
+ android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ android:layout_marginLeft="12dp"
+ android:layout_marginRight="16dp"
+ android:minWidth="@dimen/folder_teaser_count_textview_minwidth"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp"
+ android:gravity="center"
+ android:textColor="@color/folder_teaser_count_text"
+ android:textSize="16sp" />
+
+</RelativeLayout> \ No newline at end of file