• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  Layout for the contact card page. If the contact has social updates, then
19  the ViewPager and ContactDetailTabCarousel are shown together. If there
20  aren't any social updates, then just the ContactDetailFragment will be
21  shown. We include all 3 views even though they are never shown
22  simultaneously because this layout is reused but set with different data
23  each time (i.e. on a tablet).
24-->
25
26<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
27    android:layout_width="match_parent"
28    android:layout_height="match_parent"
29    android:orientation="vertical">
30
31    <android.support.v4.view.ViewPager
32        android:id="@+id/pager"
33        android:layout_alignParentTop="true"
34        android:layout_alignParentLeft="true"
35        android:layout_width="match_parent"
36        android:layout_height="match_parent" />
37
38    <include
39        android:id="@+id/tab_carousel"
40        layout="@layout/contact_detail_tab_carousel"
41        android:layout_alignParentTop="true"
42        android:layout_alignParentLeft="true"
43        android:layout_width="match_parent"
44        android:layout_height="wrap_content"
45        android:visibility="gone"/>
46
47</RelativeLayout>