Jeff Sharkey | cde7389 | 2011-04-07 00:48:02 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Paul Soulos | 2d48b5a | 2014-05-29 13:56:25 -0700 | [diff] [blame] | 2 | <!-- |
| 3 | Copyright (C) 2011 The Android Open Source Project |
Jeff Sharkey | cde7389 | 2011-04-07 00:48:02 -0700 | [diff] [blame] | 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
Brian Attwell | b7e4364 | 2014-06-02 14:33:04 -0700 | [diff] [blame] | 17 | <com.android.contacts.widget.MultiShrinkScroller |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Jeff Sharkey | cde7389 | 2011-04-07 00:48:02 -0700 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
Paul Soulos | 2d48b5a | 2014-05-29 13:56:25 -0700 | [diff] [blame] | 21 | android:orientation="vertical" |
Brian Attwell | b7e4364 | 2014-06-02 14:33:04 -0700 | [diff] [blame] | 22 | android:id="@+id/multiscroller" |
Jeff Sharkey | cde7389 | 2011-04-07 00:48:02 -0700 | [diff] [blame] | 23 | android:focusable="true" |
| 24 | android:focusableInTouchMode="true" |
Brian Attwell | b7e4364 | 2014-06-02 14:33:04 -0700 | [diff] [blame] | 25 | android:descendantFocusability="afterDescendants" > |
Paul Soulos | 2d48b5a | 2014-05-29 13:56:25 -0700 | [diff] [blame] | 26 | |
Brian Attwell | 0d90afe | 2014-06-18 16:45:41 -0700 | [diff] [blame] | 27 | <View |
| 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="@dimen/quickcontact_starting_empty_height" |
| 30 | android:id="@+id/transparent_view" /> |
| 31 | |
Brian Attwell | b7e4364 | 2014-06-02 14:33:04 -0700 | [diff] [blame] | 32 | <FrameLayout |
Daniel Lehmann | edb576a | 2011-07-27 16:45:13 -0700 | [diff] [blame] | 33 | android:layout_width="match_parent" |
Brian Attwell | 64d3abc | 2014-06-12 17:08:12 -0700 | [diff] [blame] | 34 | android:layout_height="match_parent" |
Brian Attwell | b7e4364 | 2014-06-02 14:33:04 -0700 | [diff] [blame] | 35 | android:background="@color/card_margin_color" |
| 36 | android:id="@+id/toolbar_parent"> |
Brian Attwell | d28851f | 2014-06-10 13:25:07 -0700 | [diff] [blame] | 37 | |
| 38 | <ImageView |
| 39 | android:id="@+id/photo" |
| 40 | android:layout_width="match_parent" |
| 41 | android:layout_height="match_parent" |
| 42 | android:scaleType="centerCrop" |
| 43 | android:contentDescription="@string/description_contact_photo" /> |
| 44 | |
| 45 | <!-- Need to set a non null background on Toolbar in order for MenuItem |
| 46 | ripples to be drawn on this view, instead of another--> |
| 47 | <Toolbar |
| 48 | android:layout_width="match_parent" |
| 49 | android:layout_height="?android:attr/actionBarSize" |
| 50 | android:background="#00000000" |
| 51 | android:id="@+id/toolbar"/> |
| 52 | |
Brian Attwell | b7e4364 | 2014-06-02 14:33:04 -0700 | [diff] [blame] | 53 | </FrameLayout> |
Paul Soulos | 2d48b5a | 2014-05-29 13:56:25 -0700 | [diff] [blame] | 54 | |
Brian Attwell | b7e4364 | 2014-06-02 14:33:04 -0700 | [diff] [blame] | 55 | <com.android.contacts.widget.TouchlessScrollView |
| 56 | android:layout_width="match_parent" |
| 57 | android:layout_height="match_parent" |
| 58 | android:fillViewport="true" |
| 59 | android:id="@+id/content_scroller" |
| 60 | android:background="@color/card_margin_color"> |
| 61 | |
| 62 | <!-- All the cards should be inserted into this LinearLayout --> |
| 63 | <LinearLayout |
Daniel Lehmann | 2e95ad0 | 2011-07-28 18:30:01 -0700 | [diff] [blame] | 64 | android:layout_width="match_parent" |
Brian Attwell | b7e4364 | 2014-06-02 14:33:04 -0700 | [diff] [blame] | 65 | android:layout_height="match_parent" |
| 66 | android:orientation="vertical" |
| 67 | android:id="@+id/card_container"> |
| 68 | <com.android.contacts.quickcontact.ExpandingEntryCardView |
| 69 | style="@style/ExpandingEntryCardStyle" |
| 70 | android:id="@+id/communication_card" |
Paul Soulos | b3054e5 | 2014-06-05 16:46:02 -0700 | [diff] [blame] | 71 | android:layout_marginTop="@dimen/communication_card_marginTop" |
| 72 | android:visibility="gone" /> |
| 73 | |
| 74 | <com.android.contacts.quickcontact.ExpandingEntryCardView |
| 75 | style="@style/ExpandingEntryCardStyle" |
| 76 | android:id="@+id/recent_card" |
| 77 | android:visibility="gone" /> |
Brian Attwell | b7e4364 | 2014-06-02 14:33:04 -0700 | [diff] [blame] | 78 | </LinearLayout> |
Paul Soulos | 2d48b5a | 2014-05-29 13:56:25 -0700 | [diff] [blame] | 79 | |
Brian Attwell | b7e4364 | 2014-06-02 14:33:04 -0700 | [diff] [blame] | 80 | </com.android.contacts.widget.TouchlessScrollView> |
Paul Soulos | 2d48b5a | 2014-05-29 13:56:25 -0700 | [diff] [blame] | 81 | |
Paul Soulos | b3054e5 | 2014-06-05 16:46:02 -0700 | [diff] [blame] | 82 | </com.android.contacts.widget.MultiShrinkScroller> |