1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2007 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<!-- Demonstrates starting and stopping a local service. 18 See corresponding Java code com.android.sdk.app.LocalSerice.java. --> 19 20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:padding="4dip" 21 android:gravity="center_horizontal" 22 android:layout_width="match_parent" android:layout_height="match_parent"> 23 24 <TextView 25 android:layout_width="match_parent" android:layout_height="wrap_content" 26 android:layout_weight="0" android:paddingBottom="4dip" 27 android:textAppearance="?android:attr/textAppearanceMedium" 28 android:text="Demonstrates various options that can be used when binding to a service to modify its process management."/> 29 30 <TextView android:id="@+id/callback" 31 android:layout_width="match_parent" android:layout_height="wrap_content" 32 android:layout_weight="0" 33 android:gravity="center_horizontal" android:paddingBottom="4dip" 34 android:textAppearance="?android:attr/textAppearanceMedium" /> 35 36 <ScrollView android:layout_width="match_parent" android:layout_height="match_parent"> 37 <LinearLayout android:orientation="vertical" 38 android:gravity="center_horizontal" 39 android:layout_width="match_parent" android:layout_height="wrap_content"> 40 <Button android:id="@+id/bind_normal" 41 android:layout_width="wrap_content" android:layout_height="wrap_content" 42 android:text="Normal"> 43 <requestFocus /> 44 </Button> 45 46 <Button android:id="@+id/bind_not_foreground" 47 android:layout_width="wrap_content" android:layout_height="wrap_content" 48 android:text="Not Foreground"> 49 </Button> 50 51 <Button android:id="@+id/bind_above_client" 52 android:layout_width="wrap_content" android:layout_height="wrap_content" 53 android:text="Above Client"> 54 </Button> 55 56 <Button android:id="@+id/bind_allow_oom" 57 android:layout_width="wrap_content" android:layout_height="wrap_content" 58 android:text="Allow OOM Management"> 59 </Button> 60 61 <Button android:id="@+id/bind_waive_priority" 62 android:layout_width="wrap_content" android:layout_height="wrap_content" 63 android:text="Waive Priority"> 64 </Button> 65 66 <Button android:id="@+id/bind_important" 67 android:layout_width="wrap_content" android:layout_height="wrap_content" 68 android:text="Important"> 69 </Button> 70 71 <Button android:id="@+id/bind_with_activity" 72 android:layout_width="wrap_content" android:layout_height="wrap_content" 73 android:text="Adjust With Activity"> 74 </Button> 75 76 <Button android:id="@+id/unbind" 77 android:layout_width="wrap_content" android:layout_height="wrap_content" 78 android:text="@string/unbind_service"> 79 </Button> 80 </LinearLayout> 81 </ScrollView> 82 83</LinearLayout> 84