* Use the DPM to determine if we are encrypted. * Fix misspelling (Comfirm -> Confirm). * Animate to black when enabling encryption. * Add holo droid background. * Change the progress bar to indterminate. * Display the percentage complete in the status line. * Fixed bug 3388097. You will no longer have to unplug your device to start encryption. This line is intentionally long. I could make it shorter but I am proving a point: <magic>overflow: auto;</magic>. * Actually hold onto the wakelock to prvent the device from sleeping. * Implement onStop() as a orientation change can happen at boot. This will start the activity twice and there will be multiple handlers with messages. Change-Id: Ia752d106c39e0d81431e856f8f500182e8ec1abd
69 lines
2.3 KiB
XML
69 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2011 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="match_parent"
|
|
android:paddingTop="154dip"
|
|
android:paddingLeft="128dip"
|
|
android:paddingRight="128dip"
|
|
android:paddingBottom="0dip"
|
|
android:orientation="vertical"
|
|
android:background="@drawable/encryption_bg_waiting"
|
|
>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="48dip"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginLeft="16dip"
|
|
android:textSize="30dip"
|
|
android:textColor="#ff99cc00"
|
|
android:text="@string/crypt_keeper_setup_title"
|
|
android:gravity="bottom"
|
|
/>
|
|
|
|
<!-- Divider -->
|
|
<RelativeLayout
|
|
android:id="@+id/top_divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
>
|
|
<ProgressBar
|
|
android:id="@+id/progress_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
/>
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/status"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dip"
|
|
android:layout_weight="1"
|
|
android:paddingLeft="152dip"
|
|
android:paddingTop="21dip"
|
|
android:textSize="18dip"
|
|
android:textColor="#ffffffff"
|
|
android:text="@string/crypt_keeper_setup_description"
|
|
/>
|
|
|
|
</LinearLayout>
|