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.ContactDetailTabCarousel"
     20     android:layout_width="match_parent"
     21     android:layout_height="wrap_content"
     22     android:scrollbars="none"
     23     android:fadingEdge="none">
     24 
     25     <LinearLayout
     26         android:id="@+id/tab_and_shadow_container"
     27         android:layout_width="match_parent"
     28         android:layout_height="match_parent"
     29         android:orientation="vertical">
     30 
     31         <LinearLayout
     32             android:id="@+id/tab_container"
     33             android:layout_width="match_parent"
     34             android:layout_height="0dip"
     35             android:layout_weight="1"
     36             android:orientation="horizontal"
     37             android:baselineAligned="false">
     38 
     39             <!-- "About" tab -->
     40             <include
     41                 android:id="@+id/tab_about"
     42                 layout="@layout/carousel_about_tab" />
     43 
     44             <!-- Vertical divider -->
     45             <View
     46                 android:id="@+id/tab_divider"
     47                 android:layout_width="1dip"
     48                 android:layout_height="match_parent"
     49                 android:background="@android:color/white"/>
     50 
     51             <!-- "Updates" tab -->
     52             <include
     53                 android:id="@+id/tab_update"
     54                 layout="@layout/carousel_updates_tab" />
     55 
     56         </LinearLayout>
     57 
     58         <!--
     59           Shadow below the carousel. The ContactDetailTabCarousel increases its height to
     60           account for this shadow, and the class assumes the height of this shadow to be
     61           @dimen/detail_contact_photo_shadow_height.
     62         -->
     63         <View
     64             android:id="@+id/shadow"
     65             android:layout_width="match_parent"
     66             android:layout_height="@dimen/detail_contact_photo_shadow_height"
     67             android:background="?android:attr/windowContentOverlay"/>
     68 
     69     </LinearLayout>
     70 
     71 </view>
     72