Sean Midford | 49cc754 | 2017-01-06 16:36:08 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2017 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 | <LinearLayout |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:id="@+id/empty_group" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
| 21 | android:orientation="vertical" |
| 22 | android:background="@color/empty_state_background" |
| 23 | android:visibility="gone"> |
| 24 | |
| 25 | <ImageView |
| 26 | android:id="@+id/empty_group_image" |
| 27 | android:layout_width="wrap_content" |
| 28 | android:layout_height="0dp" |
| 29 | android:layout_weight="1" |
| 30 | android:paddingTop="@dimen/empty_group_view_image_padding_top" |
| 31 | android:scaleType="centerInside" |
| 32 | android:adjustViewBounds="true" |
| 33 | android:src="@drawable/label_empty"/> |
| 34 | |
| 35 | <LinearLayout |
| 36 | android:layout_width="wrap_content" |
| 37 | android:layout_height="0dp" |
| 38 | android:layout_weight="1" |
| 39 | android:layout_gravity="center_horizontal" |
| 40 | android:orientation="vertical"> |
| 41 | |
| 42 | <TextView |
| 43 | android:id="@+id/empty_group_view_text" |
| 44 | android:layout_width="wrap_content" |
| 45 | android:layout_height="wrap_content" |
| 46 | android:layout_gravity="center_horizontal" |
| 47 | android:paddingTop="@dimen/empty_group_view_text_padding_top" |
| 48 | android:text="@string/emptyGroup" |
| 49 | style="@style/EmptyStateTextStyle"/> |
| 50 | |
| 51 | <Button |
| 52 | android:id="@+id/add_member_button" |
| 53 | android:layout_width="wrap_content" |
| 54 | android:layout_height="wrap_content" |
| 55 | android:layout_gravity="center_horizontal" |
| 56 | android:text="@string/menu_addContactsToGroup" |
| 57 | style="@style/AddContactsButtonStyle"/> |
| 58 | </LinearLayout> |
| 59 | </LinearLayout> |