summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
commit088073e6787fca4bfc68d6b04a5e887a03faf745 (patch)
tree47ae03b80214e7b82791cac1aade88a718e3643e /res/layout
downloadandroid_packages_apps_PackageInstaller-088073e6787fca4bfc68d6b04a5e887a03faf745.tar.gz
android_packages_apps_PackageInstaller-088073e6787fca4bfc68d6b04a5e887a03faf745.tar.bz2
android_packages_apps_PackageInstaller-088073e6787fca4bfc68d6b04a5e887a03faf745.zip
Initial Contribution
Diffstat (limited to 'res/layout')
-rwxr-xr-xres/layout/app_details.xml52
-rwxr-xr-xres/layout/install_confirm.xml89
-rwxr-xr-xres/layout/install_done.xml71
-rwxr-xr-xres/layout/install_start.xml27
-rwxr-xr-xres/layout/op_progress.xml46
-rwxr-xr-xres/layout/uninstall_confirm.xml91
-rwxr-xr-xres/layout/uninstall_done.xml62
7 files changed, 438 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..97bd364e
--- /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 00000000..0031beb7
--- /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 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..62bd1544
--- /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 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>
+
+