diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
commit | 088073e6787fca4bfc68d6b04a5e887a03faf745 (patch) | |
tree | 47ae03b80214e7b82791cac1aade88a718e3643e /res | |
download | packages_apps_packageinstaller-088073e6787fca4bfc68d6b04a5e887a03faf745.zip packages_apps_packageinstaller-088073e6787fca4bfc68d6b04a5e887a03faf745.tar.gz packages_apps_packageinstaller-088073e6787fca4bfc68d6b04a5e887a03faf745.tar.bz2 |
Initial Contribution
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/applications.png | bin | 0 -> 2238 bytes | |||
-rwxr-xr-x | res/drawable/button_indicator_finish.png | bin | 0 -> 617 bytes | |||
-rwxr-xr-x | res/drawable/ic_installer_text_dot.png | bin | 0 -> 332 bytes | |||
-rw-r--r-- | res/drawable/icon.png | bin | 0 -> 6094 bytes | |||
-rw-r--r-- | res/drawable/stat_sample.png | bin | 0 -> 1088 bytes | |||
-rwxr-xr-x | res/layout/app_details.xml | 52 | ||||
-rwxr-xr-x | res/layout/install_confirm.xml | 89 | ||||
-rwxr-xr-x | res/layout/install_done.xml | 71 | ||||
-rwxr-xr-x | res/layout/install_start.xml | 27 | ||||
-rwxr-xr-x | res/layout/op_progress.xml | 46 | ||||
-rwxr-xr-x | res/layout/uninstall_confirm.xml | 91 | ||||
-rwxr-xr-x | res/layout/uninstall_done.xml | 62 | ||||
-rwxr-xr-x | res/values/colors.xml | 25 | ||||
-rw-r--r-- | res/values/strings.xml | 55 |
14 files changed, 518 insertions, 0 deletions
diff --git a/res/drawable/applications.png b/res/drawable/applications.png Binary files differnew file mode 100644 index 0000000..decf741 --- /dev/null +++ b/res/drawable/applications.png diff --git a/res/drawable/button_indicator_finish.png b/res/drawable/button_indicator_finish.png Binary files differnew file mode 100755 index 0000000..5a01bcc --- /dev/null +++ b/res/drawable/button_indicator_finish.png diff --git a/res/drawable/ic_installer_text_dot.png b/res/drawable/ic_installer_text_dot.png Binary files differnew file mode 100755 index 0000000..bb02379 --- /dev/null +++ b/res/drawable/ic_installer_text_dot.png diff --git a/res/drawable/icon.png b/res/drawable/icon.png Binary files differnew file mode 100644 index 0000000..64e3601 --- /dev/null +++ b/res/drawable/icon.png diff --git a/res/drawable/stat_sample.png b/res/drawable/stat_sample.png Binary files differnew file mode 100644 index 0000000..a2e5ce3 --- /dev/null +++ b/res/drawable/stat_sample.png diff --git a/res/layout/app_details.xml b/res/layout/app_details.xml new file mode 100755 index 0000000..3ea8430 --- /dev/null +++ b/res/layout/app_details.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<!-- +Defines the layout of the application snippet that appears on top of the +installation screens +--> +<!-- The snippet about the application - title, icon, description. --> +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/app_snippet" + android:layout_width="fill_parent" + android:layout_height="65dip" + android:background="@color/title_background"> + <ImageView android:id="@+id/app_icon" + android:paddingLeft="6dip" + android:layout_width="54dip" + android:layout_height="48dip" + android:background="@color/transparent" + android:layout_alignParentLeft="true" + android:gravity="center" + android:layout_centerInParent="true" + android:scaleType="centerCrop" /> + <TextView android:id="@+id/app_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" + android:textColor="?android:attr/textColorPrimary" + android:shadowColor="@color/shadow" + android:shadowRadius="2" + android:layout_toRightOf="@id/app_icon" + android:singleLine="true" + android:gravity="center" + android:layout_centerInParent="true" + android:paddingRight="6dip" + android:paddingLeft="6dip" + android:ellipsize="end"/> +</RelativeLayout> + diff --git a/res/layout/install_confirm.xml b/res/layout/install_confirm.xml new file mode 100755 index 0000000..97bd364 --- /dev/null +++ b/res/layout/install_confirm.xml @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<!-- + + Defines the layout of the splash screen that displays the security + settings required for an application and requests the confirmation of the + user before it is installed. +--> + +<ScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:background="@color/view_background"> + + <LinearLayout + android:id="@+id/all_details" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <include + layout="@layout/app_details" + android:id="@+id/app_snippet"/> + <!-- Security settings description. --> + <TextView + android:id="@+id/security_settings_desc" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="?android:attr/textColorSecondary" + android:paddingTop="20dip" + android:paddingLeft="20dip" + android:paddingBottom="20dip"/> + + <LinearLayout + android:id="@+id/security_settings_list" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"/> + + <!-- OK confirm and cancel buttons. --> + <LinearLayout + android:background="@color/title_background" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="bottom" + android:orientation="horizontal"> + <Button + android:id="@+id/ok_button" + android:text="@string/install" + android:layout_width="150dip" + android:paddingLeft="6dip" + android:layout_gravity="left" + android:layout_weight="0.4" + android:layout_height="wrap_content"/> + <!-- Spacer --> + <View + android:id="@+id/buttons_spacer_left" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:visibility="gone" + android:layout_weight="0.2" /> + <Button + android:id="@+id/cancel_button" + android:layout_width="150dip" + android:paddingRight="6dip" + android:layout_gravity="right" + android:text="@string/cancel" + android:layout_weight="0.4" + android:layout_height="wrap_content"/> + </LinearLayout> + </LinearLayout> +</ScrollView> + diff --git a/res/layout/install_done.xml b/res/layout/install_done.xml new file mode 100755 index 0000000..0031beb --- /dev/null +++ b/res/layout/install_done.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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="fill_parent"> + + <include + layout="@layout/app_details" + android:gravity="top" + android:id="@+id/app_snippet" /> + <TextView + android:id="@+id/center_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="20dip" + android:paddingTop="36dip" + android:drawableLeft="@drawable/button_indicator_finish" + android:layout_below="@id/app_snippet" + android:textColor="?android:attr/textColorSecondary" + android:textAppearance="?android:attr/textAppearanceMedium"/> + + <!-- Launch and close buttons. --> + <LinearLayout + android:background="@color/title_background" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:orientation="horizontal"> + <Button + android:id="@+id/launch_button" + android:text="@string/launch" + android:layout_width="150dip" + android:paddingLeft="6dip" + android:layout_gravity="left" + android:layout_weight="0.4" + android:layout_height="wrap_content"/> + <!-- Spacer --> + <View + android:id="@+id/buttons_spacer_left" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:visibility="gone" + android:layout_weight="0.2" /> + <Button + android:id="@+id/done_button" + android:layout_width="150dip" + android:paddingRight="6dip" + android:layout_gravity="right" + android:text="@string/done" + android:layout_weight="0.4" + android:layout_height="wrap_content"/> + </LinearLayout> + +</RelativeLayout> + + diff --git a/res/layout/install_start.xml b/res/layout/install_start.xml new file mode 100755 index 0000000..1ef0ab5 --- /dev/null +++ b/res/layout/install_start.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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="fill_parent"> + + <include + layout="@layout/app_details" + android:id="@+id/app_snippet"/> +</RelativeLayout> + + diff --git a/res/layout/op_progress.xml b/res/layout/op_progress.xml new file mode 100755 index 0000000..b957fdf --- /dev/null +++ b/res/layout/op_progress.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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:layout_width="fill_parent" + android:layout_height="wrap_content"> + + <include + layout="@layout/app_details" + android:id="@+id/app_snippet"/> + <ProgressBar + android:id="@+id/progress_bar" + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="24dip" + android:paddingLeft="24dip" + android:paddingRight="24dip" + android:max="100" /> + <TextView + android:id="@+id/center_text" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingLeft="24dip" + android:paddingTop="16dip" + android:text="@string/installing" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="?android:attr/textColorSecondary"/> +</LinearLayout> + + diff --git a/res/layout/uninstall_confirm.xml b/res/layout/uninstall_confirm.xml new file mode 100755 index 0000000..62bd154 --- /dev/null +++ b/res/layout/uninstall_confirm.xml @@ -0,0 +1,91 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<!-- + + Defines the layout of the confirmation screen that gets displayed when an + application is about to be uninstalled. Includes ok and cancel buttons + to let the uinstallation continue or abort. +--> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:background="@color/view_background"> + + <!-- The snippet about the application - title, icon, description. --> + <include + layout="@layout/app_details" + android:layout_alignParentTop="true" + android:id="@+id/app_snippet" /> + + <!-- uninstall application confirmation question --> + <TextView + android:id="@+id/uninstall_question" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/uninstall_application_question" + android:textStyle="bold" + android:paddingTop="16dip" + android:paddingLeft="16dip" + android:layout_below="@id/app_snippet" + android:textColor="?android:attr/textColorSecondary" + android:textAppearance="?android:attr/textAppearanceMedium" + android:paddingBottom="36dip"/> + + <!-- uninstall application confirmation text --> + <TextView + android:id="@+id/uninstall_confirm_text" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/uninstall_application_text" + android:textColor="?android:attr/textColorSecondary" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_below="@id/uninstall_question" + android:paddingLeft="16dip"/> + <!-- OK confirm and cancel buttons. --> + <LinearLayout + android:background="@color/title_background" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:orientation="horizontal"> + <Button + android:id="@+id/ok_button" + android:text="@string/ok" + android:layout_width="150dip" + android:paddingLeft="6dip" + android:layout_gravity="left" + android:layout_weight="0.4" + android:layout_height="wrap_content"/> + <!-- Spacer --> + <View + android:id="@+id/buttons_spacer_left" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:visibility="gone" + android:layout_weight="0.2" /> + <Button + android:id="@+id/cancel_button" + android:layout_width="150dip" + android:paddingRight="6dip" + android:layout_gravity="right" + android:text="@string/cancel" + android:layout_weight="0.4" + android:layout_height="wrap_content"/> + </LinearLayout> +</RelativeLayout> diff --git a/res/layout/uninstall_done.xml b/res/layout/uninstall_done.xml new file mode 100755 index 0000000..082d48b --- /dev/null +++ b/res/layout/uninstall_done.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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="fill_parent"> + + <LinearLayout + android:id="@+id/top_box" + android:background="@color/title_background" + android:layout_width="fill_parent" + android:layout_height="65dip" + android:layout_alignParentTop="true"/> + + <TextView + android:id="@+id/center_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:paddingTop="60dip" + android:textColor="?android:attr/textColorSecondary" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_below="@id/top_box"/> + <!-- OK confirm and cancel buttons. --> + <!-- LinearLayout + android:background="@color/title_background" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:orientation="horizontal" --> + + <RelativeLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="@color/title_background" + android:layout_alignParentBottom="true"> + + <Button + android:id="@+id/ok_button" + android:paddingRight="6dip" + android:layout_alignParentRight="true" + android:text="@string/ok" + android:layout_width="150dip" + android:layout_height="wrap_content"/> + </RelativeLayout> +</RelativeLayout> + + diff --git a/res/values/colors.xml b/res/values/colors.xml new file mode 100755 index 0000000..0b3f6cf --- /dev/null +++ b/res/values/colors.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<resources> + <color name="view_background">#1c1c1c</color> + <color name="ok_button_background">#0f0</color> + <color name="cancel_button_background">#f00</color> + <color name="title_background">#828282</color> + <color name="shadow">#cc222222</color> + <color name="transparent">#00000000</color> +</resources> + diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 0000000..be22456 --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 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. +--> + +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">Package Installer</string> + <string name="app_description">Application that installs/uninstalls packages</string> + <string name="install">Install</string> + <string name="done">Done</string> + <!-- TODO REMOVE LATER --> + <string name="security_settings_header">Security permissions</string> + <string name="security_settings_desc">Allow this application to:</string> + <string name="cancel">Cancel</string> + <string name="unknown">Unknown</string> + <string name="install_application">Install application</string> + <string name="installing">Installing\u2026</string> + <string name="install_done">Application installed</string> + <string name="install_failed">Application install unsuccessful</string> + <string name="launch">Launch</string> + <string name="unknown_apps_dlg_title">Install blocked</string> + <string name="unknown_apps_dlg_text">For security, your phone is set to block installation of applications not sourced in Android Market.</string> + <string name="ok">OK</string> + <string name="settings">Settings</string> + <string name="manage_applications">Manage applications</string> + <string name="installation_question">Do you want to install this application?</string> + <string name="dlg_app_replacement_title">Replace application</string> + <string name="dlg_app_replacement_statement">The application you are installing will replace another application.\n\nAll previous user data will be saved.</string> + <string name="out_of_space_dlg_title">Out of space</string> + <string name="out_of_space_dlg_text"><xliff:g id="app_name">%1$s</xliff:g> could not be viewed. Free up some space on your phone and try again.</string> + <!-- strings related to uninstall activity --> + <string name="dlg_ok">OK</string> + <string name="app_not_found_dlg_title">Application not found</string> + <string name="app_not_found_dlg_text"> The application was not +found in the list of installed applications.</string> + <string name="uninstall_application_question">Uninstall application?</string> + <string name="uninstall_application_text">This application will be removed from your phone.</string> + <string name="uninstalling">Uninstalling\u2026</string> + <string name="uninstall_done">Uninstall finished!</string> + <string name="uninstall_failed">Application uninstall not successful</string> + <string name="uninstall_application">Uninstall</string> + <string name="app_security_permission_title"><xliff:g id="app_name">%1$s</xliff:g> - security permissions</string> + +</resources> |