diff options
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/installed_app_details.xml | 48 | ||||
-rw-r--r-- | res/layout/power_usage_detail_item_text.xml | 43 | ||||
-rw-r--r-- | res/layout/power_usage_details.xml | 90 | ||||
-rw-r--r-- | res/layout/preference_powergauge.xml | 65 | ||||
-rw-r--r-- | res/layout/widget.xml | 76 | ||||
-rw-r--r-- | res/layout/wifi_ap_configure.xml | 103 |
6 files changed, 416 insertions, 9 deletions
diff --git a/res/layout/installed_app_details.xml b/res/layout/installed_app_details.xml index 7c8a672..13d3b10 100644 --- a/res/layout/installed_app_details.xml +++ b/res/layout/installed_app_details.xml @@ -28,9 +28,51 @@ android:paddingTop="5dip" android:paddingBottom="5dip" android:orientation="vertical"> - <include - layout="@layout/manage_applications_item" - android:id="@+id/app_snippet"/> + + <!-- App snippet --> + <RelativeLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical"> + + <LinearLayout + android:orientation="vertical" + android:layout_alignParentLeft="true" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="6dip" + android:paddingBottom="6dip" + android:paddingRight="6dip" + android:paddingLeft="6dip" > + <!-- application name --> + <TextView android:id="@+id/app_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textStyle="bold" + android:singleLine="true" + android:ellipsize="marquee" + android:layout_marginBottom="2dip" /> + <!-- application version --> + <TextView android:id="@+id/app_version" + android:layout_marginTop="-4dip" + android:layout_gravity="center_vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" /> + </LinearLayout> + + <!-- application icon --> + <ImageView android:id="@+id/app_icon" + android:layout_width="@android:dimen/app_icon_size" + android:layout_height="@android:dimen/app_icon_size" + android:layout_alignParentRight="true" + android:paddingTop="6dip" + android:paddingBottom="6dip" + android:paddingRight="6dip" + android:scaleType="fitCenter" /> + </RelativeLayout> + <TextView style="?android:attr/listSeparatorTextViewStyle" diff --git a/res/layout/power_usage_detail_item_text.xml b/res/layout/power_usage_detail_item_text.xml new file mode 100644 index 0000000..097469b --- /dev/null +++ b/res/layout/power_usage_detail_item_text.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 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. +--> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + <!--Label for the item--> + <TextView + android:id="@+id/label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textStyle="bold" + android:singleLine="true" + android:layout_alignParentLeft="true" + android:layout_marginBottom="2dip" + android:layout_marginTop="2dip" /> + <TextView + android:id="@+id/value" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textStyle="normal" + android:singleLine="true" + android:layout_marginBottom="2dip" + android:layout_marginTop="2dip" + android:layout_marginRight="4dip"/> +</RelativeLayout> diff --git a/res/layout/power_usage_details.xml b/res/layout/power_usage_details.xml new file mode 100644 index 0000000..dd8d486 --- /dev/null +++ b/res/layout/power_usage_details.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 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_width="fill_parent" + android:layout_height="fill_parent"> + <LinearLayout + android:id="@+id/all_details" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:paddingRight="6dip" + android:paddingTop="5dip" + android:paddingBottom="5dip" + android:orientation="vertical"> + + <!-- Details header - icon, label and percentage --> + <RelativeLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical"> + + <LinearLayout + android:orientation="vertical" + android:layout_alignParentLeft="true" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="6dip" + android:paddingBottom="6dip" + android:paddingRight="6dip" + android:paddingLeft="6dip" > + <!-- application name --> + <TextView android:id="@+id/name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textStyle="bold" + android:singleLine="true" + android:ellipsize="marquee" + android:layout_marginBottom="2dip" /> + <!-- application version --> + <TextView android:id="@+id/battery_percentage" + android:layout_marginTop="-4dip" + android:layout_gravity="center_vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" /> + </LinearLayout> + + <!-- application icon --> + <ImageView android:id="@+id/icon" + android:layout_width="@android:dimen/app_icon_size" + android:layout_height="@android:dimen/app_icon_size" + android:layout_alignParentRight="true" + android:paddingTop="6dip" + android:paddingBottom="6dip" + android:paddingRight="6dip" + android:scaleType="fitCenter" /> + </RelativeLayout> + + + <TextView + style="?android:attr/listSeparatorTextViewStyle" + android:text="@string/details_subtitle" /> + + <LinearLayout + android:id="@+id/details" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingLeft="6dip" + android:orientation="vertical"> + + <!-- Insert detail items here --> + + </LinearLayout> + </LinearLayout> +</ScrollView> diff --git a/res/layout/preference_powergauge.xml b/res/layout/preference_powergauge.xml new file mode 100644 index 0000000..551659e --- /dev/null +++ b/res/layout/preference_powergauge.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 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:minHeight="?android:attr/listPreferredItemHeight" + android:gravity="center_vertical" + android:paddingLeft="16dip" + android:id="@+android:id/widget_frame" + android:paddingRight="?android:attr/scrollbarSize"> + + <ImageView + android:id="@+id/appIcon" + android:layout_width="48dip" + android:layout_height="wrap_content" + android:layout_marginRight="6dip" + android:layout_gravity="center" /> + + <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:visibility="gone" + android:textAppearance="?android:attr/textAppearanceLarge" /> + + <ImageView + android:id="@+id/appGauge" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:layout_marginRight="6dip" + android:layout_gravity="center_vertical" /> + + <TextView android:id="@+android:id/summary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/appGauge" + android:layout_alignLeft="@id/appGauge" + android:textAppearance="?android:attr/textAppearanceSmall" + android:maxLines="2" /> + + </RelativeLayout> + +</LinearLayout> diff --git a/res/layout/widget.xml b/res/layout/widget.xml new file mode 100644 index 0000000..63ce5a5 --- /dev/null +++ b/res/layout/widget.xml @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 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:id="@+id/main" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:paddingLeft="12dip" + android:paddingRight="12dip" + android:paddingTop="7dip" + android:paddingBottom="13dip" + android:background="@drawable/widget_bg" > + + <ImageButton + android:id="@+id/btn_wifi" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_marginLeft="8dip" + android:background="@drawable/widget_btn" + android:layout_gravity="center_horizontal" + /> + + <ImageButton + android:id="@+id/btn_brightness" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_marginLeft="8dip" + android:background="@drawable/widget_btn" + android:layout_gravity="center_horizontal" + + /> + + <ImageButton + android:id="@+id/btn_sync" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_marginLeft="8dip" + android:background="@drawable/widget_btn" + android:layout_gravity="center_horizontal" + + /> + + <ImageButton + android:id="@+id/btn_gps" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_marginLeft="8dip" + android:background="@drawable/widget_btn" + android:layout_gravity="center_horizontal" + + /> + + <ImageButton + android:id="@+id/btn_bluetooth" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_marginLeft="8dip" + android:background="@drawable/widget_btn" + android:layout_gravity="center_horizontal" + + /> + </LinearLayout> diff --git a/res/layout/wifi_ap_configure.xml b/res/layout/wifi_ap_configure.xml index d786cff..ecd6337 100644 --- a/res/layout/wifi_ap_configure.xml +++ b/res/layout/wifi_ap_configure.xml @@ -24,11 +24,17 @@ android:padding="8dip" android:orientation="vertical"> - + <LinearLayout + android:id="@+id/table" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + </LinearLayout> + <!-- SSID --> - <TextView + <TextView android:id="@+id/ssid_text" style="?android:attr/textAppearanceSmallInverse" android:layout_width="fill_parent" android:layout_height="wrap_content" @@ -44,7 +50,7 @@ <!-- Security --> - <TextView + <TextView android:id="@+id/security_text" style="?android:attr/textAppearanceSmallInverse" android:layout_width="fill_parent" android:layout_height="wrap_content" @@ -55,9 +61,94 @@ <Spinner android:id="@+id/security_spinner" android:layout_width="fill_parent" android:layout_height="wrap_content" /> - - - + + <!-- Enterprise Fields --> + <LinearLayout android:id="@+id/enterprise_wrapper" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:padding="8dip" + android:orientation="vertical"> + <TextView android:id="@+id/eap_text" + style="?android:attr/textAppearanceSmallInverse" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dip" + android:text="@string/please_select_eap" /> + <Spinner android:id="@+id/eap_spinner" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + <TextView android:id="@+id/phase2_text" + style="?android:attr/textAppearanceSmallInverse" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dip" + android:text="@string/please_select_phase2" /> + <Spinner android:id="@+id/phase2_spinner" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + <TextView android:id="@+id/identity_text" + style="?android:attr/textAppearanceSmallInverse" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dip" + android:text="@string/please_type_identity" /> + <EditText android:id="@+id/identity_edit" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="2dip" + android:singleLine="true" /> + <TextView android:id="@+id/anonymous_identity_text" + style="?android:attr/textAppearanceSmallInverse" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dip" + android:text="@string/please_type_anonymous_identity" /> + <EditText android:id="@+id/anonymous_identity_edit" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="2dip" + android:singleLine="true" /> + <TextView android:id="@+id/client_certificate_text" + style="?android:attr/textAppearanceSmallInverse" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dip" + android:text="@string/please_select_client_certificate" /> + <Spinner android:id="@+id/client_certificate_spinner" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + <TextView android:id="@+id/ca_certificate_text" + style="?android:attr/textAppearanceSmallInverse" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dip" + android:text="@string/please_select_ca_certificate" /> + <Spinner android:id="@+id/ca_certificate_spinner" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + <TextView android:id="@+id/private_key_text" + style="?android:attr/textAppearanceSmallInverse" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dip" + android:text="@string/please_select_private_key" /> + <Spinner android:id="@+id/private_key_spinner" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + <TextView android:id="@+id/private_key_passwd_text" + style="?android:attr/textAppearanceSmallInverse" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dip" + android:text="@string/please_type_private_key_passwd" /> + <EditText android:id="@+id/private_key_passwd_edit" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="2dip" + android:singleLine="true" /> + </LinearLayout> + <!-- Password --> <TextView android:id="@+id/password_text" |