Brian Attwell | 20510ec | 2015-02-27 16:10:45 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2015 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 | --> |
Brian Attwell | 8f8937f | 2015-03-05 14:07:43 -0800 | [diff] [blame] | 16 | <FrameLayout |
Brian Attwell | 20510ec | 2015-02-27 16:10:45 -0800 | [diff] [blame] | 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:id="@+id/selection_bar" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
John Shao | fbecdf6 | 2016-07-21 16:19:46 -0700 | [diff] [blame] | 21 | android:background="@color/contextual_selection_bar_color"> |
Brian Attwell | 20510ec | 2015-02-27 16:10:45 -0800 | [diff] [blame] | 22 | |
| 23 | <ImageButton |
| 24 | android:id="@+id/selection_close" |
yaolu | 75d2edb | 2016-07-22 15:45:46 -0700 | [diff] [blame] | 25 | android:layout_width="@dimen/selection_bar_close_icon_size" |
| 26 | android:layout_height="@dimen/selection_bar_close_icon_size" |
John Shao | fbecdf6 | 2016-07-21 16:19:46 -0700 | [diff] [blame] | 27 | android:layout_gravity="center_vertical|start" |
Gary Mai | 3e9637f | 2016-09-06 18:22:55 -0700 | [diff] [blame] | 28 | android:tint="@color/quantum_black_secondary_text" |
Wenyi Wang | 3c3b6f1 | 2016-04-02 13:58:43 -0700 | [diff] [blame] | 29 | android:background="?attr/selectableItemBackgroundBorderless" |
Tingting Wang | faa2ec5 | 2016-07-13 13:14:46 -0700 | [diff] [blame] | 30 | android:contentDescription="@string/action_menu_back_from_edit_select" |
John Shao | bd9ef3c | 2016-12-15 12:42:03 -0800 | [diff] [blame] | 31 | android:src="@drawable/quantum_ic_close_vd_theme_24"/> |
Brian Attwell | 20510ec | 2015-02-27 16:10:45 -0800 | [diff] [blame] | 32 | |
| 33 | <TextView |
| 34 | android:id="@+id/selection_count_text" |
John Shao | fbecdf6 | 2016-07-21 16:19:46 -0700 | [diff] [blame] | 35 | style="@style/ContactsActionBarTitleTextBlack" |
Brian Attwell | 20510ec | 2015-02-27 16:10:45 -0800 | [diff] [blame] | 36 | android:layout_width="wrap_content" |
| 37 | android:layout_height="wrap_content" |
Brian Attwell | 8f8937f | 2015-03-05 14:07:43 -0800 | [diff] [blame] | 38 | android:layout_gravity="center_vertical|start" |
John Shao | fbecdf6 | 2016-07-21 16:19:46 -0700 | [diff] [blame] | 39 | android:layout_marginEnd="@dimen/edit_group_end_margin" |
| 40 | android:layout_marginStart="72dp" |
Wenyi Wang | db66269 | 2016-07-14 16:07:44 -0700 | [diff] [blame] | 41 | android:ellipsize="end" |
John Shao | fbecdf6 | 2016-07-21 16:19:46 -0700 | [diff] [blame] | 42 | android:singleLine="true" |
| 43 | android:visibility="gone"/> |
Brian Attwell | 20510ec | 2015-02-27 16:10:45 -0800 | [diff] [blame] | 44 | |
Wenyi Wang | f5493a6 | 2016-07-11 14:28:52 -0700 | [diff] [blame] | 45 | <TextView |
| 46 | android:id="@+id/add_contacts" |
Wenyi Wang | f5493a6 | 2016-07-11 14:28:52 -0700 | [diff] [blame] | 47 | android:layout_width="wrap_content" |
John Shao | fbecdf6 | 2016-07-21 16:19:46 -0700 | [diff] [blame] | 48 | android:layout_height="48dp" |
Wenyi Wang | f5493a6 | 2016-07-11 14:28:52 -0700 | [diff] [blame] | 49 | android:layout_gravity="center_vertical|end" |
John Shao | fbecdf6 | 2016-07-21 16:19:46 -0700 | [diff] [blame] | 50 | android:gravity="center" |
| 51 | android:paddingEnd="16dp" |
| 52 | android:paddingStart="16dp" |
Wenyi Wang | f5493a6 | 2016-07-11 14:28:52 -0700 | [diff] [blame] | 53 | android:text="@string/menu_add_contacts" |
Wenyi Wang | db66269 | 2016-07-14 16:07:44 -0700 | [diff] [blame] | 54 | android:textColor="@color/primary_color" |
John Shao | fbecdf6 | 2016-07-21 16:19:46 -0700 | [diff] [blame] | 55 | android:textStyle="bold" |
| 56 | android:visibility="gone"/> |
Wenyi Wang | f5493a6 | 2016-07-11 14:28:52 -0700 | [diff] [blame] | 57 | |
Brian Attwell | 8f8937f | 2015-03-05 14:07:43 -0800 | [diff] [blame] | 58 | </FrameLayout> |