Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 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 
     17 <!--
     18   TODO: Collapse carousel_about_tab with carousel_updates_tab into 1 XML that
     19   handles all cases when updates fragment is more finalized.
     20 -->
     21 <view
     22     xmlns:android="http://schemas.android.com/apk/res/android"
     23     class="com.android.contacts.detail.CarouselTab"
     24     android:layout_width="0dip"
     25     android:layout_height="match_parent"
     26     android:layout_weight="1"
     27     android:background="@drawable/bg_people_updates_holo">
     28 
     29     <RelativeLayout
     30         android:layout_width="match_parent"
     31         android:layout_height="match_parent" >
     32 
     33         <ImageView android:id="@+id/status_photo"
     34             android:scaleType="centerCrop"
     35             android:layout_width="match_parent"
     36             android:layout_height="match_parent"
     37             android:layout_alignParentTop="true"
     38             android:layout_alignParentLeft="true"
     39             android:layout_alignParentStart="true"
     40             android:visibility="gone" />
     41 
     42         <!-- Transparent view to overlay on the update photo
     43         (to allow white text to appear over a white photo). -->
     44         <View android:id="@+id/label_background"
     45             android:layout_width="match_parent"
     46             android:layout_height="@dimen/detail_tab_carousel_tab_label_height"
     47             android:layout_alignParentLeft="true"
     48             android:layout_alignParentStart="true"
     49             android:layout_alignParentBottom="true"
     50             android:layout_above="@id/status_photo"
     51             android:background="#7F000000" />
     52 
     53         <TextView android:id="@+id/status"
     54             android:layout_width="wrap_content"
     55             android:layout_height="match_parent"
     56             android:layout_alignParentTop="true"
     57             android:layout_alignParentLeft="true"
     58             android:layout_alignParentStart="true"
     59             android:layout_above="@id/label"
     60             android:gravity="center_vertical"
     61             android:paddingLeft="@dimen/detail_update_tab_side_padding"
     62             android:paddingRight="@dimen/detail_update_tab_side_padding"
     63             android:paddingStart="@dimen/detail_update_tab_side_padding"
     64             android:paddingEnd="@dimen/detail_update_tab_side_padding"
     65             android:textAppearance="?android:attr/textAppearanceLarge"
     66             android:textColor="@color/detail_update_tab_text_color"
     67             android:textStyle="bold"
     68             android:maxLines="@integer/updates_tab_snippet_max_lines"
     69             android:ellipsize="end" />
     70 
     71         <View
     72             android:id="@+id/alpha_overlay"
     73             android:layout_width="match_parent"
     74             android:layout_height="match_parent"
     75             android:layout_alignParentLeft="true"
     76             android:layout_alignParentStart="true"
     77             android:layout_alignParentTop="true"
     78             android:layout_marginBottom="@dimen/detail_tab_carousel_tab_label_height"/>
     79 
     80         <TextView
     81             android:id="@+id/label"
     82             android:layout_width="match_parent"
     83             android:layout_height="@dimen/detail_tab_carousel_tab_label_height"
     84             android:layout_alignParentLeft="true"
     85             android:layout_alignParentStart="true"
     86             android:layout_alignParentBottom="true"
     87             android:layout_above="@id/status_photo"
     88             android:paddingLeft="@dimen/detail_tab_carousel_tab_label_indent"
     89             android:paddingStart="@dimen/detail_tab_carousel_tab_label_indent"
     90             android:singleLine="true"
     91             android:gravity="start|center_vertical"
     92             android:textAppearance="?android:attr/textAppearanceMedium"
     93             android:textColor="@color/detail_tab_carousel_tab_label_color"
     94             style="@android:style/Widget.Holo.ActionBar.TabView" />
     95 
     96     </RelativeLayout>
     97 
     98 </view>
     99