| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2019, The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/bubble_permission_height" |
| android:animateLayoutChanges="true" |
| android:orientation="vertical" |
| android:paddingStart="@dimen/bubble_expanded_header_horizontal_padding" |
| android:paddingEnd="@dimen/bubble_expanded_header_horizontal_padding"> |
| |
| <!-- App info --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:layout_marginTop="@dimen/bubble_expanded_header_horizontal_padding" > |
| |
| <ImageView |
| android:id="@+id/pkgicon" |
| android:layout_width="@dimen/bubble_permission_icon_size" |
| android:layout_height="@dimen/bubble_permission_icon_size" |
| android:layout_centerVertical="true" |
| android:layout_marginEnd="3dp" |
| /> |
| |
| <TextView |
| android:id="@+id/pkgname" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:textAppearance="@*android:style/TextAppearance.Material.Body2" |
| android:layout_marginStart="3dp" |
| android:layout_marginEnd="2dp" |
| android:singleLine="true" |
| android:gravity="center_vertical" |
| android:layout_centerVertical="true" |
| /> |
| </LinearLayout> |
| |
| <!-- Actual permission --> |
| <TextView |
| android:id="@+id/prompt" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="8dp" |
| android:text="@string/bubbles_prompt" |
| style="@*android:style/TextAppearance.DeviceDefault.Notification.Title"/> |
| |
| <!-- Buttons --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="end" |
| android:orientation="horizontal"> |
| |
| <TextView |
| android:id="@+id/no_bubbles_button" |
| android:text="@string/no_bubbles" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:background="@drawable/ripple_drawable" |
| style="@style/TextAppearance.NotificationInfo.Button"/> |
| <TextView |
| android:id="@+id/yes_bubbles_button" |
| android:text="@string/yes_bubbles" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:background="@drawable/ripple_drawable" |
| style="@style/TextAppearance.NotificationInfo.Button"/> |
| </LinearLayout> |
| </LinearLayout> |