summaryrefslogtreecommitdiffstats
path: root/res/layout/running_service_details_service.xml
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-06-06 22:51:42 -0700
committerDianne Hackborn <hackbod@google.com>2010-06-07 12:33:53 -0700
commit728ac35373028b79205a788c526ef4b495518ec1 (patch)
treee011bd482891bfccd0b3250a8e0ac6720bc40f5c /res/layout/running_service_details_service.xml
parent2486572bd6c963483197d6c29eef240e6621aeae (diff)
downloadpackages_apps_Settings-728ac35373028b79205a788c526ef4b495518ec1.zip
packages_apps_Settings-728ac35373028b79205a788c526ef4b495518ec1.tar.gz
packages_apps_Settings-728ac35373028b79205a788c526ef4b495518ec1.tar.bz2
New Running Services UI.
This introduces a simplified (thanks, dsandler!) UI for Running Services, collapsing the groups of apps and processes into single lines. Tapping on a line moves to a new activity showing details on that group, where the stop functionality is now available. This UI is now also integrated into Manage Applications, as the Running tab. You no longer get a really confusing, misleading, scary list of every package that appears to be laying around for some reason. The code was also re-organized, to put everything related to Manage Applications and Running Services under its own package. There is still some clean-up -- some performance improvements (such as not re-computing the world when we switch to the details view), and if this looks good then eradicating the old running services UI. Change-Id: I3fc059c18060600742cab5b455d11ff74bf45ae3
Diffstat (limited to 'res/layout/running_service_details_service.xml')
-rw-r--r--res/layout/running_service_details_service.xml48
1 files changed, 48 insertions, 0 deletions
diff --git a/res/layout/running_service_details_service.xml b/res/layout/running_service_details_service.xml
new file mode 100644
index 0000000..b9f9bbe
--- /dev/null
+++ b/res/layout/running_service_details_service.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 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:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <!--
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:src="?android:attr/listDivider"/>
+ -->
+
+ <!-- Icon and label of the service. -->
+ <include
+ layout="@layout/running_processes_item"
+ android:id="@+id/service"/>
+
+ <TextView android:id="@+id/comp_description"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp"
+ android:paddingLeft="14dip"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <include
+ layout="@layout/two_buttons_panel"
+ android:id="@+id/control_buttons_panel"/>
+
+</LinearLayout>