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     <RelativeLayout
     30         android:id="@+id/widget_header"
     31         android:layout_width="match_parent"
     32         android:layout_height="48dp"
     33         android:paddingLeft="16dp"
     34         android:paddingRight="16dp"
     35         android:background="@color/widget_header_bg_color">
     36         <ImageButton
     37             android:id="@+id/widget_compose"
     38             android:layout_width="wrap_content"
     39             android:layout_height="wrap_content"
     40             android:src="@drawable/ic_widget_compose_wht_24dp"
     41             android:background="?android:attr/selectableItemBackground"
     42             android:paddingLeft="16dp"
     43             android:layout_alignParentRight="true"
     44             android:layout_centerVertical="true"
     45             android:contentDescription="@string/compose" />
     46         <TextView
     47             android:id="@+id/widget_folder"
     48             style="@style/WidgetTitle"
     49             android:layout_width="wrap_content"
     50             android:layout_height="wrap_content"
     51             android:freezesText="true"
     52             android:layout_toLeftOf="@id/widget_compose"
     53             android:layout_alignParentLeft="true"
     54             android:layout_centerVertical="true"
     55             android:includeFontPadding="false" />
     56     </RelativeLayout>
     57 
     58     <LinearLayout
     59         android:id="@+id/widget_configuration"
     60         android:layout_width="match_parent"
     61         android:layout_height="match_parent"
     62         android:orientation="horizontal"
     63         android:gravity="center"
     64         android:background="@drawable/gradient_bg_widget_holo"
     65         android:visibility="gone">
     66         <ImageView
     67             android:src="@mipmap/ic_launcher_mail"
     68             android:layout_width="wrap_content"
     69             android:layout_height="wrap_content"
     70             android:paddingRight="8dip" />
     71         <TextView
     72             android:layout_width="wrap_content"
     73             android:layout_height="wrap_content"
     74             android:text="@string/tap_to_configure"
     75             android:textColor="@android:color/black"
     76             android:textSize="16sp"
     77             android:textStyle="bold"/>
     78     </LinearLayout>
     79     <ListView
     80         android:id="@+id/conversation_list"
     81         android:layout_width="match_parent"
     82         android:layout_height="0dip"
     83         android:layout_weight="1"
     84         android:cacheColorHint="#00000000"
     85         android:background="@drawable/gradient_bg_widget_holo"
     86         style="@style/ConversationListFade" />
     87     <TextView
     88         android:id="@+id/empty_conversation_list"
     89         android:layout_width="match_parent"
     90         android:layout_height="0dip"
     91         android:layout_weight="1"
     92         android:gravity="center"
     93         android:text="@string/loading_conversations"
     94         android:textColor="@android:color/black"
     95         android:textSize="16sp"
     96         android:textStyle="bold"
     97         android:background="@drawable/gradient_bg_widget_holo"
     98         android:visibility="gone" />
     99     <LinearLayout android:id="@+id/widget_folder_not_synced"
    100             android:layout_width="match_parent"
    101             android:layout_height="0dip"
    102             android:layout_weight="1"
    103             android:paddingLeft="24dip"
    104             android:paddingRight="24dip"
    105             android:orientation="vertical"
    106             android:gravity="center"
    107             android:background="@drawable/gradient_bg_widget_holo"
    108             android:visibility="gone" >
    109         <TextView
    110             android:layout_width="wrap_content"
    111             android:layout_height="wrap_content"
    112             android:layout_marginBottom="16dip"
    113             android:text="@string/non_synced_folder_description"
    114             android:textColor="@android:color/black"
    115             android:textSize="16sp" />
    116         <TextView
    117             android:layout_width="match_parent"
    118             android:layout_height="wrap_content"
    119             android:paddingTop="8dip"
    120             android:paddingBottom="8dip"
    121             android:text="@string/tap_to_configure_folder_sync"
    122             android:textColor="@android:color/black"
    123             android:background="@android:color/darker_gray"
    124             android:gravity="center"
    125             android:textSize="16sp"
    126             android:textStyle="bold"/>
    127     </LinearLayout>
    128 </LinearLayout>
    129