Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2012 Google Inc.
      4      Licensed to The Android Open Source Project.
      5 
      6      Licensed under the Apache License, Version 2.0 (the "License");
      7      you may not use this file except in compliance with the License.
      8      You may obtain a copy of the License at
      9 
     10           http://www.apache.org/licenses/LICENSE-2.0
     11 
     12      Unless required by applicable law or agreed to in writing, software
     13      distributed under the License is distributed on an "AS IS" BASIS,
     14      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15      See the License for the specific language governing permissions and
     16      limitations under the License.
     17 -->
     18 
     19 <LinearLayout
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:layout_width="match_parent"
     22     android:layout_height="match_parent"
     23     android:layout_marginTop="@dimen/widget_margin_top"
     24     android:layout_marginLeft="@dimen/widget_margin_left"
     25     android:layout_marginRight="@dimen/widget_margin_right"
     26     android:layout_marginBottom="@dimen/widget_margin_bottom"
     27     android:orientation="vertical">
     28 
     29     <LinearLayout
     30         android:id="@+id/widget_header"
     31         android:layout_width="match_parent"
     32         android:layout_height="48dp"
     33         android:background="@color/widget_header_bg_color"
     34         style="@style/WidgetHeaderStartMargin">
     35         <TextView
     36             android:id="@+id/widget_folder"
     37             android:layout_width="0dp"
     38             android:layout_height="wrap_content"
     39             android:layout_weight="1"
     40             android:layout_gravity="center_vertical"
     41             android:freezesText="true"
     42             android:textAlignment="viewStart"
     43             android:includeFontPadding="false"
     44             style="@style/WidgetTitle"/>
     45         <ImageButton
     46             android:id="@+id/widget_compose"
     47             android:layout_width="56dp"
     48             android:layout_height="match_parent"
     49             android:scaleType="center"
     50             android:src="@drawable/ic_pencil_wht_24dp"
     51             android:background="?android:attr/selectableItemBackground"
     52             android:contentDescription="@string/compose" />
     53     </LinearLayout>
     54 
     55     <LinearLayout
     56         android:id="@+id/widget_configuration"
     57         android:layout_width="match_parent"
     58         android:layout_height="match_parent"
     59         android:orientation="horizontal"
     60         android:gravity="center"
     61         android:background="@drawable/gradient_bg_widget_holo"
     62         android:visibility="gone">
     63         <ImageView
     64             android:src="@mipmap/ic_launcher_mail"
     65             android:layout_width="wrap_content"
     66             android:layout_height="wrap_content"
     67             android:paddingRight="8dip" />
     68         <TextView
     69             android:layout_width="wrap_content"
     70             android:layout_height="wrap_content"
     71             android:text="@string/tap_to_configure"
     72             android:textColor="@android:color/black"
     73             android:textSize="16sp"
     74             android:textStyle="bold"/>
     75     </LinearLayout>
     76     <ListView
     77         android:id="@+id/conversation_list"
     78         android:layout_width="match_parent"
     79         android:layout_height="0dip"
     80         android:layout_weight="1"
     81         android:cacheColorHint="#00000000"
     82         android:background="@drawable/gradient_bg_widget_holo"
     83         style="@style/WidgetConversationListFade" />
     84     <TextView
     85         android:id="@+id/empty_conversation_list"
     86         android:layout_width="match_parent"
     87         android:layout_height="0dip"
     88         android:layout_weight="1"
     89         android:gravity="center"
     90         android:text="@string/loading_conversations"
     91         android:textColor="@android:color/black"
     92         android:textSize="16sp"
     93         android:textStyle="bold"
     94         android:background="@drawable/gradient_bg_widget_holo"
     95         android:visibility="gone" />
     96     <LinearLayout android:id="@+id/widget_folder_not_synced"
     97             android:layout_width="match_parent"
     98             android:layout_height="0dip"
     99             android:layout_weight="1"
    100             android:paddingLeft="24dip"
    101             android:paddingRight="24dip"
    102             android:orientation="vertical"
    103             android:gravity="center"
    104             android:background="@drawable/gradient_bg_widget_holo"
    105             android:visibility="gone" >
    106         <TextView
    107             android:layout_width="wrap_content"
    108             android:layout_height="wrap_content"
    109             android:layout_marginBottom="16dip"
    110             android:text="@string/non_synced_folder_description"
    111             android:textColor="@android:color/black"
    112             android:textSize="16sp" />
    113         <TextView
    114             android:layout_width="match_parent"
    115             android:layout_height="wrap_content"
    116             android:paddingTop="8dip"
    117             android:paddingBottom="8dip"
    118             android:text="@string/tap_to_configure_folder_sync"
    119             android:textColor="@android:color/black"
    120             android:background="@android:color/darker_gray"
    121             android:gravity="center"
    122             android:textSize="16sp"
    123             android:textStyle="bold"/>
    124     </LinearLayout>
    125 </LinearLayout>
    126