diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:32:31 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:32:31 -0800 |
commit | 91ec61c3dca241befdf4a3803c45b051a3e3124f (patch) | |
tree | 59fc988de9bdfbca4bcf0b946d29bceda657fa7c /res/layout | |
parent | 8106e501baad76e7192c7ddbb9f5e179c7ff6f9b (diff) | |
download | android_packages_apps_PackageInstaller-91ec61c3dca241befdf4a3803c45b051a3e3124f.tar.gz android_packages_apps_PackageInstaller-91ec61c3dca241befdf4a3803c45b051a3e3124f.tar.bz2 android_packages_apps_PackageInstaller-91ec61c3dca241befdf4a3803c45b051a3e3124f.zip |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'res/layout')
-rwxr-xr-x | res/layout/app_details.xml | 52 | ||||
-rwxr-xr-x | res/layout/install_confirm.xml | 108 | ||||
-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 | 94 | ||||
-rwxr-xr-x | res/layout/uninstall_done.xml | 62 |
7 files changed, 460 insertions, 0 deletions
diff --git a/res/layout/app_details.xml b/res/layout/app_details.xml new file mode 100755 index 00000000..3ea84309 --- /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 00000000..bfda97dc --- /dev/null +++ b/res/layout/install_confirm.xml @@ -0,0 +1,108 @@ +<?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. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + + <include + layout="@layout/app_details" + android:id="@+id/app_snippet"/> + <TextView + android:id="@+id/install_confirm_question" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/install_confirm_question" + android:textAppearance="?android:attr/textAppearanceMedium" + android:paddingTop="20dip" + android:paddingLeft="20dip" + android:paddingBottom="20dip"/> + + <ScrollView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:fillViewport="true" + android:layout_weight="1"> + + <!-- Security settings description. --> + <LinearLayout + android:id="@+id/permissions_section" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginRight = "2dip" + android:orientation="vertical"> + <TextView + android:id="@+id/security_settings_desc" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:paddingTop="20dip" + android:paddingLeft="20dip" + android:paddingBottom="20dip"/> + + <LinearLayout + android:id="@+id/security_settings_list" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1.0" + android:orientation="vertical"/> + </LinearLayout> + </ScrollView> + + <!-- 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:paddingTop="4dip" + android:paddingLeft="2dip" + android:paddingRight="2dip" + 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> diff --git a/res/layout/install_done.xml b/res/layout/install_done.xml new file mode 100755 index 00000000..e33f57b7 --- /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:drawablePadding="6dip" + 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 00000000..1ef0ab5d --- /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 00000000..b957fdf7 --- /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 00000000..3f7f18ac --- /dev/null +++ b/res/layout/uninstall_confirm.xml @@ -0,0 +1,94 @@ +<?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:paddingTop="4dip" + android:paddingLeft="2dip" + android:paddingRight="2dip" + 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 00000000..082d48b5 --- /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> + + |