1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 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<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:paddingStart="@dimen/preference_no_icon_padding_start" 22 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 23 android:orientation="vertical"> 24 <ScrollView 25 android:layout_width="match_parent" 26 android:layout_height="0dip" 27 android:layout_marginTop="16dp" 28 android:layout_weight="1"> 29 <LinearLayout 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:orientation="vertical"> 33 <TextView 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:layout_marginTop="8dip" 37 android:layout_marginBottom="16dip" 38 android:textAppearance="?android:attr/textAppearanceMedium" 39 android:text="@string/crypt_keeper_desc" /> 40 <TextView 41 android:id="@+id/warning_low_charge" 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" 44 android:layout_marginTop="16dip" 45 android:textAppearance="?android:attr/textAppearanceMedium" 46 android:textStyle="bold" 47 android:text="@string/crypt_keeper_low_charge_text" 48 android:visibility="gone" /> 49 <TextView 50 android:id="@+id/warning_unplugged" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:layout_marginTop="16dip" 54 android:textAppearance="?android:attr/textAppearanceMedium" 55 android:textStyle="bold" 56 android:text="@string/crypt_keeper_unplugged_text" 57 android:visibility="gone" /> 58 </LinearLayout> 59 </ScrollView> 60 <Button 61 android:id="@+id/initiate_encrypt" 62 style="@style/ActionPrimaryButton" 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:layout_gravity="end" 66 android:text="@string/crypt_keeper_button_text" /> 67</LinearLayout> 68