diff options
author | Nick Pelly <npelly@google.com> | 2009-07-10 18:45:13 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2009-07-10 18:45:13 -0700 |
commit | 09e9cba205af60b3f42e7a4d891a7d1392e1f2a5 (patch) | |
tree | bfd7231a370036545b20bff5075ecbccc95ab9cf /res/layout | |
parent | 0756299082f38134b9a9dfae3fd09408bf62e071 (diff) | |
download | android_packages_apps_Bluetooth-09e9cba205af60b3f42e7a4d891a7d1392e1f2a5.tar.gz android_packages_apps_Bluetooth-09e9cba205af60b3f42e7a4d891a7d1392e1f2a5.tar.bz2 android_packages_apps_Bluetooth-09e9cba205af60b3f42e7a4d891a7d1392e1f2a5.zip |
Initial drop of Motorola Bluetooth OPP code.
Minor changes from Moto code:
- Added Motorola BSD license
- Moved com.motorola.bluetoothshare to com.android.bluetooth.opp
- Updated com.motorola.obex to javax.obex
- Moved Android.mk to Android.mk.hide: does not yet compile due to changes in
Obex library.
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/bluetooth_pin_entry.xml | 32 | ||||
-rw-r--r-- | res/layout/bt_enabling_progress.xml | 21 | ||||
-rw-r--r-- | res/layout/confirm_dialog.xml | 14 | ||||
-rw-r--r-- | res/layout/device_picker.xml | 19 | ||||
-rw-r--r-- | res/layout/file_transfer.xml | 75 | ||||
-rw-r--r-- | res/layout/main.xml | 14 | ||||
-rw-r--r-- | res/layout/preference_bluetooth.xml | 42 | ||||
-rw-r--r-- | res/layout/preference_progress_category.xml | 37 | ||||
-rw-r--r-- | res/layout/status_bar_ongoing_event_progress_bar.xml | 84 | ||||
-rw-r--r-- | res/layout/testactivity_main.xml | 141 |
10 files changed, 479 insertions, 0 deletions
diff --git a/res/layout/bluetooth_pin_entry.xml b/res/layout/bluetooth_pin_entry.xml new file mode 100644 index 000000000..a7043d77b --- /dev/null +++ b/res/layout/bluetooth_pin_entry.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> + +<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" /> + + <EditText + android:id="@+id/text" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:layout_marginTop="20dip" + android:layout_marginLeft="20dip" + android:layout_marginRight="20dip" + android:singleLine="true" /> + + </LinearLayout> + +</ScrollView>
\ No newline at end of file diff --git a/res/layout/bt_enabling_progress.xml b/res/layout/bt_enabling_progress.xml new file mode 100644 index 000000000..8da77ae7e --- /dev/null +++ b/res/layout/bt_enabling_progress.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + + <ProgressBar android:id="@+android:id/progress" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + /> + + <TextView + android:id="@+id/progress_info" + android:layout_height="fill_parent" + android:layout_width="wrap_content" + android:layout_marginLeft="10px" + android:gravity="left" + /> + + </LinearLayout> diff --git a/res/layout/confirm_dialog.xml b/res/layout/confirm_dialog.xml new file mode 100644 index 000000000..827c2e478 --- /dev/null +++ b/res/layout/confirm_dialog.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > + + <TextView + android:id="@+id/content" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/hello" + /> +</LinearLayout> diff --git a/res/layout/device_picker.xml b/res/layout/device_picker.xml new file mode 100644 index 000000000..22b37eba3 --- /dev/null +++ b/res/layout/device_picker.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> + +<PreferenceScreen + xmlns:android="http://schemas.android.com/apk/res/android"> + + <PreferenceCategory + android:title="@string/device_picker"/> + + <Preference + android:key="bt_scan" + android:title="@string/bluetooth_preference_scan_title" /> + + <com.android.bluetooth.opp.ProgressCategory + android:key="bt_device_list" + android:title="@string/bluetooth_devices" + android:orderingFromXml="false" /> + +</PreferenceScreen> + diff --git a/res/layout/file_transfer.xml b/res/layout/file_transfer.xml new file mode 100644 index 000000000..cca9ebe67 --- /dev/null +++ b/res/layout/file_transfer.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="utf-8"?> + +<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:orientation="vertical"> + + + <TextView + android:id="@+id/line1_view" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_marginLeft="6px" + android:textSize="16sp" + android:text="@string/download_line1"/> + + <TextView + android:id="@+id/line2_view" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_marginLeft="6px" + android:textSize="16sp" + android:text="@string/download_line2"/> + + <TextView + android:id="@+id/line3_view" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_marginLeft="6px" + android:textSize="16sp" + android:text="@string/download_line3"/> + + <TextView + android:id="@+id/line4_view" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_marginLeft="6px" + android:textSize="16sp" + android:text="@string/download_line4"/> + + <TextView + android:id="@+id/line5_view" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:gravity="center" + android:textSize="16sp" + android:text="@string/download_line5"/> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > + + <TextView + android:id="@+id/progress_percent" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_marginLeft="10px" + android:gravity="left" + /> + + <ProgressBar android:id="@+id/progress_transfer" + style="?android:attr/progressBarStyleHorizontal" + android:layout_marginLeft="10px" + android:layout_marginRight="10px" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="100" + android:progress="100" /> + + </LinearLayout> + +</TableLayout> diff --git a/res/layout/main.xml b/res/layout/main.xml new file mode 100644 index 000000000..b8e4b03c1 --- /dev/null +++ b/res/layout/main.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > + +<TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/hello" + /> + +</LinearLayout> diff --git a/res/layout/preference_bluetooth.xml b/res/layout/preference_bluetooth.xml new file mode 100644 index 000000000..b2b44feb3 --- /dev/null +++ b/res/layout/preference_bluetooth.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:gravity="center_vertical" + android:paddingLeft="16dip" + android:paddingRight="?android:attr/scrollbarSize"> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="6dip" + android:layout_marginTop="6dip" + android:layout_marginBottom="6dip" + android:layout_weight="1"> + + <TextView android:id="@+android:id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceLarge" /> + + <TextView android:id="@+android:id/summary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@android:id/title" + android:layout_alignLeft="@android:id/title" + android:textAppearance="?android:attr/textAppearanceSmall" + android:maxLines="2" /> + + </RelativeLayout> + + <ImageView + android:id="@+id/btClass" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="12dip" + android:layout_gravity="center_vertical" /> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/preference_progress_category.xml b/res/layout/preference_progress_category.xml new file mode 100644 index 000000000..ddf2bf494 --- /dev/null +++ b/res/layout/preference_progress_category.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- Layout used for ProgressCategory in bluetooth settings. --> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="27dip" + android:background="@*android:drawable/settings_header"> + + <TextView + android:id="@+android:id/title" + style="?android:attr/listSeparatorTextViewStyle" + /> + + <ProgressBar + android:id="@+id/scanning_progress" + android:text="@string/progress_scanning" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_centerVertical="true" + android:layout_marginRight="?android:attr/scrollbarSize" + style="?android:attr/progressBarStyleSmallTitle" + /> + + <TextView + android:id="@+id/scanning_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_toLeftOf="@id/scanning_progress" + android:textSize="18sp" + android:textColor="@android:color/primary_text_light" + android:layout_marginRight="5sp" + android:text="@string/progress_scanning" + /> + +</RelativeLayout> diff --git a/res/layout/status_bar_ongoing_event_progress_bar.xml b/res/layout/status_bar_ongoing_event_progress_bar.xml new file mode 100644 index 000000000..6af8792b4 --- /dev/null +++ b/res/layout/status_bar_ongoing_event_progress_bar.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:background="@android:drawable/status_bar_item_app_background" + > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="horizontal" + > + + <LinearLayout + android:layout_width="40dp" + android:layout_height="fill_parent" + android:orientation="vertical" + android:paddingTop="8dp" + android:focusable="true" + android:clickable="true" + > + <com.android.server.status.AnimatedImageView + android:id="@+id/appIcon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:src="@android:drawable/sym_def_app_icon" + /> + <TextView android:id="@+id/progress_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="#ff000000" + android:singleLine="true" + android:textSize="14sp" + android:layout_gravity="center_horizontal" + /> + </LinearLayout> + + <RelativeLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:focusable="true" + android:clickable="true" + > + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:focusable="true" + android:clickable="true" + android:layout_alignParentTop="true" + android:paddingTop="10dp" + > + <TextView android:id="@+id/description" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="#ff000000" + android:singleLine="true" + android:textSize="14sp" + android:paddingLeft="5dp" + /> + </LinearLayout> + <ProgressBar android:id="@+id/progress_bar" + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:paddingBottom="8dp" + android:paddingRight="25dp" + /> + </RelativeLayout> + </LinearLayout> + + <com.android.server.status.AnimatedImageView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:src="@android:drawable/divider_horizontal_bright" + /> + +</LinearLayout> + diff --git a/res/layout/testactivity_main.xml b/res/layout/testactivity_main.xml new file mode 100644 index 000000000..36a77b9ab --- /dev/null +++ b/res/layout/testactivity_main.xml @@ -0,0 +1,141 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + > + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + > + <LinearLayout + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="3dip" + android:text="@string/Insert_record" /> + <EditText + android:id="@+id/Insert_text" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + /> + </LinearLayout> + <LinearLayout + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" > + <EditText + android:id="@+id/Media_text" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + /> + <EditText + android:id="@+id/Address_text" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + /> + <Button + android:id="@+id/Insert_record" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="3dip" + android:text="@string/OK_button" /> + </LinearLayout> + </LinearLayout> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="3dip" + android:text="@string/Delete_record" /> + <EditText + android:id="@+id/Delete_text" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + /> + + <Button + android:id="@+id/Delete_record" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="3dip" + android:text="@string/OK_button" /> + </LinearLayout> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="3dip" + android:text="@string/Update_record" /> + <EditText + android:id="@+id/Update_text" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + /> + + <Button + android:id="@+id/Update_record" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="3dip" + android:text="@string/OK_button" /> + </LinearLayout> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="3dip" + android:text="@string/Ack_record" /> + <EditText + android:id="@+id/Ack_text" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + /> + + <Button + android:id="@+id/Ack_record" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="3dip" + android:text="@string/OK_button" /> + </LinearLayout> + +<Button + android:id="@+id/DeleteAll_record" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/DeleteAll_record"></Button> + +<Button + android:id="@+id/Start_server" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/Start_server"></Button> + + <Button + android:id="@+id/Notify_server" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/Notify_server"></Button> +</LinearLayout> |