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 <view
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     class="com.android.contacts.detail.CarouselTab"
     20     android:layout_width="0dip"
     21     android:layout_height="match_parent"
     22     android:layout_weight="1">
     23 
     24     <ImageView android:id="@+id/photo"
     25         android:scaleType="centerCrop"
     26         android:layout_width="match_parent"
     27         android:layout_height="match_parent"
     28         android:layout_alignParentTop="true"
     29         android:layout_alignParentLeft="true"/>
     30 
     31     <!-- Transparent view to overlay on the contact's photo
     32     (to allow white text to appear over a white photo). -->
     33     <View
     34         android:layout_width="match_parent"
     35         android:layout_height="@dimen/detail_tab_carousel_tab_label_height"
     36         android:layout_alignParentLeft="true"
     37         android:layout_alignParentBottom="true"
     38         android:background="#7F000000" />
     39 
     40     <View
     41         android:id="@+id/alpha_overlay"
     42         android:layout_width="match_parent"
     43         android:layout_height="match_parent"
     44         android:layout_alignParentLeft="true"
     45         android:layout_alignParentTop="true"
     46         android:layout_marginBottom="@dimen/detail_tab_carousel_tab_label_height"/>
     47 
     48     <TextView
     49         android:id="@+id/label"
     50         android:layout_width="match_parent"
     51         android:layout_height="@dimen/detail_tab_carousel_tab_label_height"
     52         android:layout_alignParentLeft="true"
     53         android:layout_alignParentBottom="true"
     54         android:paddingLeft="@dimen/detail_tab_carousel_tab_label_indent"
     55         android:singleLine="true"
     56         android:gravity="left|center_vertical"
     57         android:textAppearance="?android:attr/textAppearanceMedium"
     58         android:textColor="@color/detail_tab_carousel_tab_label_color"
     59         style="@android:style/Widget.Holo.ActionBar.TabView" />
     60 
     61     <View
     62         android:id="@+id/touch_intercept_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:background="?android:attr/selectableItemBackground"
     68         android:visibility="gone"/>
     69 </view>
     70