OSDN Git Service

Add notouch resources for avoid crash on x86
[android-x86/packages-apps-Contacts.git] / res / layout-notouch / edit_phonetic_name.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2009 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 <!-- "Phonetic name" field on the Edit contact screen.
18
19      In locales where a "phonetic name" is meaningful, like Japanese
20      (which uses a "furigana" or "yomi" field), this layout file
21      should include a visible label and EditText widget.
22
23      In the default locale, though, nothing here is visible.
24      This layout file MUST still provide an EditText widget with
25      id "phonetic_name" in *any* locale, though, since the Java code depends
26      on it.  (Even if the EditText is hidden we might still need to store
27      a value there, so we don't *lose* a phonetic name from the database
28      just because the user happened to edit it in a non-Japanese locale.)
29
30      For now, at least, this layout contains a complete (but hidden)
31      "phonetic name" row, so it's easy to test the phonetic_name feature
32      by temporarily removing the visibility="gone" attribute below.
33 -->
34 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
35     android:layout_width="fill_parent"
36     android:layout_height="?android:attr/listPreferredItemHeight"
37     android:orientation="horizontal"
38     android:padding="0dip"
39     android:gravity="center_vertical"
40     android:baselineAligned="false"
41     android:visibility="gone"
42     >
43     <TextView
44         android:layout_width="wrap_content"
45         android:layout_height="fill_parent"
46         android:paddingLeft="4dip"
47         android:gravity="left|center_vertical"
48         android:text="@string/label_phonetic_name"
49         android:textAppearance="?android:attr/textAppearanceMedium"
50         />
51     <EditText android:id="@+id/phonetic_name"
52         android:layout_width="0dip"
53         android:layout_weight="1"
54         android:layout_height="wrap_content"
55         android:layout_marginLeft="8dip"
56         android:layout_marginRight="4dip"
57         android:gravity="center_vertical"
58         android:inputType="textPersonName|textCapWords"
59         android:hint="@string/ghostData_phonetic_name"
60         android:nextFocusDown="@id/data"
61         />
62 </LinearLayout>