1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2008 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 how to use a custom title. 18 See corresponding Java code com.example.android.apis.app.CustomTitle.java. --> 19 20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:id="@+id/screen" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:orientation="vertical"> 25 <LinearLayout android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:baselineAligned="false"> 28 <EditText android:id="@+id/left_text_edit" 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:maxEms="10" 32 android:minEms="10" 33 android:layout_gravity="center_vertical" 34 android:text="@string/custom_title_left" /> 35 <Button android:id="@+id/left_text_button" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:layout_gravity="center_vertical" 39 android:text="@string/custom_title_left_button"/> 40 </LinearLayout> 41 <LinearLayout android:layout_width="match_parent" 42 android:layout_height="wrap_content" 43 android:baselineAligned="false"> 44 <EditText android:id="@+id/right_text_edit" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 android:maxEms="10" 48 android:minEms="10" 49 android:layout_gravity="center_vertical" 50 android:text="@string/custom_title_right" /> 51 <Button android:id="@+id/right_text_button" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:layout_gravity="center_vertical" 55 android:text="@string/custom_title_right_button"/> 56 </LinearLayout> 57</LinearLayout> 58