diff options
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/preference_progress_category.xml | 8 | ||||
-rw-r--r-- | res/layout/wifi_display_options.xml | 34 | ||||
-rw-r--r-- | res/layout/wifi_display_preference.xml | 43 |
3 files changed, 80 insertions, 5 deletions
diff --git a/res/layout/preference_progress_category.xml b/res/layout/preference_progress_category.xml index 6e8188c..17d87d7 100644 --- a/res/layout/preference_progress_category.xml +++ b/res/layout/preference_progress_category.xml @@ -18,19 +18,18 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" style="?android:attr/listSeparatorTextViewStyle" android:gravity="center_vertical" - android:orientation="horizontal" - > + android:orientation="horizontal"> <!-- This text view has the style of the list separator text view without the background and padding. --> <TextView style="?android:attr/listSeparatorTextViewStyle" android:background="@null" - android:paddingStart="16dip" android:id="@+android:id/title" + android:paddingStart="0dp" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:layout_gravity="start|bottom" + android:layout_gravity="start|center" /> <ProgressBar @@ -40,7 +39,6 @@ android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginStart="16dip" - android:layout_marginEnd="16dip" style="?android:attr/progressBarStyleSmallTitle" /> diff --git a/res/layout/wifi_display_options.xml b/res/layout/wifi_display_options.xml new file mode 100644 index 0000000..c56a512 --- /dev/null +++ b/res/layout/wifi_display_options.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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="wrap_content" + android:paddingStart="16dp" + android:paddingEnd="16dp" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/wifi_display_options_name" /> + + <EditText + android:id="@+id/name" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + +</LinearLayout> diff --git a/res/layout/wifi_display_preference.xml b/res/layout/wifi_display_preference.xml new file mode 100644 index 0000000..d8c4729 --- /dev/null +++ b/res/layout/wifi_display_preference.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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="wrap_content" + android:gravity="center_vertical"> + + <!-- Divider --> + <ImageView + android:id="@+id/divider" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:src="@drawable/nav_divider" + android:contentDescription="@null" + /> + + <!-- Details button --> + <ImageView + android:id="@+id/deviceDetails" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:padding="8dip" + android:background="?android:attr/selectableItemBackground" + android:src="@drawable/ic_bt_config" + android:contentDescription="@string/wifi_display_details" /> + +</LinearLayout> |