summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorLixin Yue <L.X.YUE@motorola.com>2009-09-21 20:36:16 +0800
committerJaikumar Ganesh <jaikumar@google.com>2009-09-23 08:55:16 -0700
commitdc3bacd6eb626a93f2c3c4c62b3ef6aa9e575d92 (patch)
tree930a2338d2a3865c20a95e8a2f31a1a369dc7cd5 /res/layout
parent1f556d99c4bb7cae5ed55c171ce7f65b5010fa57 (diff)
downloadandroid_packages_apps_Bluetooth-dc3bacd6eb626a93f2c3c4c62b3ef6aa9e575d92.tar.gz
android_packages_apps_Bluetooth-dc3bacd6eb626a93f2c3c4c62b3ef6aa9e575d92.tar.bz2
android_packages_apps_Bluetooth-dc3bacd6eb626a93f2c3c4c62b3ef6aa9e575d92.zip
Update opp/pbap look and feel
Update OPP BtEnabling Dialog-add timeout handling, handle Bluetooth ON intent, handle back key Change-Id: I3d3ade3a9a4de645ddb7195e8b81ca42afb3d31e
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/access.xml34
-rw-r--r--res/layout/auth.xml24
-rw-r--r--res/layout/bt_enabling_progress.xml55
-rw-r--r--res/layout/file_transfer.xml143
4 files changed, 176 insertions, 80 deletions
diff --git a/res/layout/access.xml b/res/layout/access.xml
index 9fdb9587c..5905b2c75 100644
--- a/res/layout/access.xml
+++ b/res/layout/access.xml
@@ -1,26 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2009, 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.
+*/
+-->
+
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:orientation="vertical">
<TextView
- android:id="@+id/message"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:gravity="center_horizontal"
- android:textAppearance="?android:attr/textAppearanceMedium" />
+ android:id="@+id/message"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:gravity="center_horizontal"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
<CheckBox android:id="@+id/alwaysallowed"
+ style="?android:attr/textAppearanceMedium"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceSmall"
+ android:layout_marginTop="2dip"
android:text="@string/alwaysallowed" />
</LinearLayout>
diff --git a/res/layout/auth.xml b/res/layout/auth.xml
index d6a35cd0d..e5c079a2e 100644
--- a/res/layout/auth.xml
+++ b/res/layout/auth.xml
@@ -1,10 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2009, 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.
+*/
+-->
+
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:orientation="vertical">
@@ -13,13 +31,15 @@
android:id="@+id/message"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
android:gravity="center_horizontal"
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText
android:id="@+id/text"
- android:layout_height="wrap_content"
android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
android:layout_marginTop="20dip"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
diff --git a/res/layout/bt_enabling_progress.xml b/res/layout/bt_enabling_progress.xml
index ea5ba45b8..fa09d4e93 100644
--- a/res/layout/bt_enabling_progress.xml
+++ b/res/layout/bt_enabling_progress.xml
@@ -1,20 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2009, 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:orientation="horizontal"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_height="fill_parent"
+ android:layout_width="fill_parent">
- <ProgressBar android:id="@+android:id/progress"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
- <TextView
- android:id="@+id/progress_info"
- android:layout_height="fill_parent"
- android:layout_width="wrap_content"
- android:layout_marginLeft="10dip"
- />
+ <ProgressBar android:id="@+android:id/progress"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
- </LinearLayout>
+ <TextView
+ android:id="@+id/progress_info"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:layout_gravity="center_vertical"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ </LinearLayout>
+
+ </ScrollView>
diff --git a/res/layout/file_transfer.xml b/res/layout/file_transfer.xml
index e43fe3ae7..55a75ad4b 100644
--- a/res/layout/file_transfer.xml
+++ b/res/layout/file_transfer.xml
@@ -1,72 +1,103 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2009, 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="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_height="fill_parent"
+ android:layout_width="fill_parent">
- <TextView
- android:id="@+id/line1_view"
- android:layout_width="fill_parent"
+ <LinearLayout
android:layout_height="fill_parent"
- android:layout_marginLeft="6dip"
- android:textSize="16sp"
- android:text="@string/download_line1" />
-
- <TextView
- android:id="@+id/line2_view"
android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="6dip"
- android:textSize="16sp"
- android:text="@string/download_line2" />
+ android:orientation="vertical">
- <TextView
- android:id="@+id/line3_view"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="6dip"
- android:textSize="16sp"
- android:text="@string/download_line3" />
+ <TextView
+ android:id="@+id/line1_view"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:text="@string/download_line1" />
- <TextView
- android:id="@+id/line4_view"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_marginLeft="6dip"
- android:textSize="16sp"
- android:text="@string/download_line4" />
+ <TextView
+ android:id="@+id/line2_view"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:text="@string/download_line2" />
- <TextView
- android:id="@+id/line5_view"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:gravity="center"
- android:textSize="16sp"
- android:text="@string/download_line5" />
+ <TextView
+ android:id="@+id/line3_view"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:text="@string/download_line3" />
- <LinearLayout
- android:orientation="horizontal"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- >
+ <TextView
+ android:id="@+id/line4_view"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:text="@string/download_line4" />
<TextView
- android:id="@+id/progress_percent"
+ android:id="@+id/line5_view"
+ android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginLeft="10dip"
- android:gravity="left"/>
+ android:gravity="center"
+ android:layout_marginLeft="20dip"
+ android:layout_marginRight="20dip"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:text="@string/download_line5" />
- <ProgressBar android:id="@+id/progress_transfer"
- style="?android:attr/progressBarStyleHorizontal"
- android:layout_marginLeft="10dip"
- android:layout_marginRight="10dip"
- android:layout_width="0dip"
- android:layout_weight="1"
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:max="100"
- android:progress="100" />
+ >
+
+ <TextView
+ android:id="@+id/progress_percent"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginLeft="20dip"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:gravity="left" />
+
+ <ProgressBar android:id="@+id/progress_transfer"
+ style="?android:attr/progressBarStyleHorizontal"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="10dip"
+ android:layout_marginRight="20dip"
+ android:layout_width="0dip"
+ android:layout_weight="1"
+ android:max="100"
+ android:progress="100" />
+ </LinearLayout>
+
</LinearLayout>
-</LinearLayout>
+ </ScrollView> \ No newline at end of file