Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2013 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     17     android:layout_width="match_parent"
     18     android:layout_height="wrap_content"
     19     android:background="@drawable/folder_teaser_item_background"
     20     android:paddingTop="8dp" >
     21 
     22     <ImageView
     23         android:id="@+id/folder_imageView"
     24         android:layout_width="48dp"
     25         android:layout_height="wrap_content"
     26         android:layout_alignParentLeft="true"
     27         android:layout_centerVertical="true"
     28         android:layout_marginLeft="16dp"
     29         android:layout_marginRight="12dp"
     30         android:layout_marginBottom="8dp"
     31         android:background="@color/folder_teaser_icon_background"
     32         android:baselineAlignBottom="true"
     33         android:duplicateParentState="true" />
     34 
     35     <View
     36         android:id="@+id/frame_height_spacer"
     37         android:layout_width="0dp"
     38         android:layout_height="0dp"
     39         android:layout_below="@id/folder_imageView" />
     40 
     41     <LinearLayout
     42         android:id="@+id/text_layout"
     43         android:layout_width="match_parent"
     44         android:layout_height="wrap_content"
     45         android:layout_centerVertical="true"
     46         android:layout_toLeftOf="@+id/count_textView"
     47         android:layout_toRightOf="@id/folder_imageView"
     48         android:duplicateParentState="true"
     49         android:orientation="vertical" >
     50 
     51         <TextView
     52             android:id="@+id/folder_textView"
     53             android:layout_width="wrap_content"
     54             android:layout_height="wrap_content"
     55             android:duplicateParentState="true"
     56             android:includeFontPadding="false"
     57             android:textColor="@color/teaser_main_text"
     58             android:textSize="16sp"
     59             android:textStyle="bold"
     60             android:singleLine="true"
     61             android:ellipsize="end" />
     62 
     63         <TextView
     64             android:id="@+id/senders_textView"
     65             android:layout_width="wrap_content"
     66             android:layout_height="wrap_content"
     67             android:duplicateParentState="true"
     68             android:includeFontPadding="false"
     69             android:fontFamily="sans-serif-light"
     70             android:textColor="@color/folder_teaser_senders_text"
     71             android:textSize="12sp"
     72             android:singleLine="true"
     73             android:ellipsize="end" />
     74 
     75     </LinearLayout>
     76 
     77     <TextView
     78         android:id="@id/count_textView"
     79         android:layout_width="wrap_content"
     80         android:layout_height="24sp"
     81         android:layout_alignParentRight="true"
     82         android:layout_centerVertical="true"
     83         android:layout_marginLeft="12dp"
     84         android:layout_marginRight="16dp"
     85         android:minWidth="@dimen/folder_teaser_count_textview_minwidth"
     86         android:paddingLeft="16dp"
     87         android:paddingRight="16dp"
     88         android:gravity="center"
     89         android:textColor="@color/folder_teaser_count_text"
     90         android:textSize="16sp" />
     91 
     92 </RelativeLayout>