diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/ownerinfo.xml | 56 | ||||
-rw-r--r-- | res/values/strings.xml | 7 | ||||
-rw-r--r-- | res/xml/settings_headers.xml | 10 |
3 files changed, 70 insertions, 3 deletions
diff --git a/res/layout/ownerinfo.xml b/res/layout/ownerinfo.xml new file mode 100644 index 0000000..16e7a85 --- /dev/null +++ b/res/layout/ownerinfo.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 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="vertical" + android:paddingLeft="6dip" + android:paddingRight="6dip" + android:paddingBottom="3dip" + android:layout_width="match_parent" android:layout_height="wrap_content" + android:scrollbars="vertical" > + + <CheckBox android:id="@+id/show_owner_info_on_lockscreen_checkbox" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android_layout_marginTop="20dip" + android:text="@string/show_owner_info_on_lockscreen_label" + /> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android_layout_marginTop="20dip" + android:scrollbars="vertical" > + + <EditText android:id="@+id/owner_info_edit_text" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="2" + android:lines="4" + android:maxLines="4" + /> + + <View + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="1" + /> + + </LinearLayout> + +</LinearLayout> + diff --git a/res/values/strings.xml b/res/values/strings.xml index 86bbb5b..32aeec2 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -559,7 +559,10 @@ <string name="lock_after_timeout">Lock device after timeout</string> <!-- Security settings screen, setting option summary to change screen timeout --> <string name="lock_after_timeout_summary">Adjust the delay before the device automatically locks</string> - + <!-- Text shown next to checkbox for showing owner info on LockScreen [CHAR LIMIT=50]--> + <string name="show_owner_info_on_lockscreen_label">Show owner info on lock screen</string> + <!-- Text shown on top-level settings for owner info [CHAR LIMIT=20]--> + <string name="owner_info_settings_title">Owner info</string> <!-- Main Settings screen setting option title for the item to take you the security and location screen --> <string name="security_settings_title">Location & security</string> <!-- Location & security settings screen title --> @@ -2034,7 +2037,7 @@ found in the list of installed applications.</string> <string name="runningservicedetails_stop_dlg_text">Are you sure you want to stop this system service? If you do, some features of your phone may stop working correctly until you power it off and then on again.</string> - + <!-- Language Settings --> <skip /> <!-- Title of setting on main settings screen. This item will take the user to the screen to tweak settings realted to locale and text --> <string name="language_settings">Language & keyboard</string> diff --git a/res/xml/settings_headers.xml b/res/xml/settings_headers.xml index 43338bb..0292f5f 100644 --- a/res/xml/settings_headers.xml +++ b/res/xml/settings_headers.xml @@ -109,7 +109,7 @@ <!-- Storage --> - <header + <header android:fragment="com.android.settings.deviceinfo.Memory" android:icon="@drawable/ic_settings_storage" android:title="@string/storage_settings"> @@ -156,6 +156,14 @@ android:title="@string/date_and_time_settings_title"> </header> + <!-- Owner info --> + + <header + android:fragment="com.android.settings.OwnerInfo" + android:icon="@drawable/ic_settings_about" + android:title="@string/owner_info_settings_title"> + </header> + <!-- About Device --> <header |