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     <ImageView android:id="@+id/status_photo"
     30         android:scaleType="centerCrop"
     31         android:layout_width="match_parent"
     32         android:layout_height="match_parent"
     33         android:layout_alignParentTop="true"
     34         android:layout_alignParentLeft="true"
     35         android:visibility="gone" />
     36 
     37     <!-- Transparent view to overlay on the update photo
     38     (to allow white text to appear over a white photo). -->
     39     <View
     40         android:layout_width="match_parent"
     41         android:layout_height="@dimen/detail_tab_carousel_tab_label_height"
     42         android:layout_alignParentLeft="true"
     43         android:layout_alignParentBottom="true"
     44         android:layout_above="@id/status_photo"
     45         android:background="#7F000000" />
     46 
     47     <TextView android:id="@+id/status"
     48         android:layout_width="wrap_content"
     49         android:layout_height="match_parent"
     50         android:layout_alignParentTop="true"
     51         android:layout_alignParentLeft="true"
     52         android:layout_above="@id/label"
     53         android:gravity="center_vertical"
     54         android:paddingLeft="@dimen/detail_update_tab_side_padding"
     55         android:paddingRight="@dimen/detail_update_tab_side_padding"
     56         android:textAppearance="?android:attr/textAppearanceLarge"
     57         android:textColor="@color/detail_update_tab_text_color"
     58         android:textStyle="bold"
     59         android:maxLines="3"/>
     60 
     61     <View
     62         android:id="@+id/alpha_overlay"
     63         android:layout_width="match_parent"
     64         android:layout_height="match_parent"
     65         android:layout_alignParentLeft="true"
     66         android:layout_alignParentTop="true"
     67         android:layout_marginBottom="@dimen/detail_tab_carousel_tab_label_height"/>
     68 
     69     <TextView
     70         android:id="@+id/label"
     71         android:layout_width="match_parent"
     72         android:layout_height="@dimen/detail_tab_carousel_tab_label_height"
     73         android:layout_alignParentLeft="true"
     74         android:layout_alignParentBottom="true"
     75         android:layout_above="@id/status_photo"
     76         android:paddingLeft="@dimen/detail_tab_carousel_tab_label_indent"
     77         android:singleLine="true"
     78         android:gravity="left|center_vertical"
     79         android:textAppearance="?android:attr/textAppearanceMedium"
     80         android:textColor="@color/detail_tab_carousel_tab_label_color"
     81         style="@android:style/Widget.Holo.ActionBar.TabView" />
     82 
     83     <View
     84         android:id="@+id/touch_intercept_overlay"
     85         android:layout_width="match_parent"
     86         android:layout_height="match_parent"
     87         android:layout_alignParentLeft="true"
     88         android:layout_alignParentTop="true"
     89         android:background="?android:attr/selectableItemBackground"
     90         android:visibility="gone"/>
     91 
     92 </view>
     93