diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:31:44 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:31:44 -0800 |
commit | 9066cfe9886ac131c34d59ed0e2d287b0e3c0087 (patch) | |
tree | d88beb88001f2482911e3d28e43833b50e4b4e97 /tests/ImfTest/res | |
parent | d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 (diff) | |
download | frameworks_base-9066cfe9886ac131c34d59ed0e2d287b0e3c0087.zip frameworks_base-9066cfe9886ac131c34d59ed0e2d287b0e3c0087.tar.gz frameworks_base-9066cfe9886ac131c34d59ed0e2d287b0e3c0087.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'tests/ImfTest/res')
-rw-r--r-- | tests/ImfTest/res/layout/dialog_edit_text_no_scroll.xml | 36 | ||||
-rwxr-xr-x | tests/ImfTest/res/layout/full_screen_edit_text.xml | 27 | ||||
-rwxr-xr-x | tests/ImfTest/res/layout/one_edit_text_activity.xml | 50 | ||||
-rwxr-xr-x | tests/ImfTest/res/layout/sample_edit_text.xml | 53 | ||||
-rw-r--r-- | tests/ImfTest/res/values/config.xml | 21 | ||||
-rwxr-xr-x | tests/ImfTest/res/values/strings.xml | 50 |
6 files changed, 237 insertions, 0 deletions
diff --git a/tests/ImfTest/res/layout/dialog_edit_text_no_scroll.xml b/tests/ImfTest/res/layout/dialog_edit_text_no_scroll.xml new file mode 100644 index 0000000..e8ffa1c --- /dev/null +++ b/tests/ImfTest/res/layout/dialog_edit_text_no_scroll.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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="fill_parent" + android:layout_height="fill_parent" + android:padding="20dip" + android:orientation="vertical"> + + <View + android:id="@+id/blank" + android:layout_height="0dip" + android:layout_width="fill_parent" + android:layout_weight="1"/> + + <EditText + android:id="@+id/dialog_edit_text" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:scrollHorizontally="true" + android:textAppearance="?android:attr/textAppearanceMedium" /> + +</LinearLayout> diff --git a/tests/ImfTest/res/layout/full_screen_edit_text.xml b/tests/ImfTest/res/layout/full_screen_edit_text.xml new file mode 100755 index 0000000..f22aa2f --- /dev/null +++ b/tests/ImfTest/res/layout/full_screen_edit_text.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* //device/samples/SampleCode/res/layout/baseline_1.xml +** +** Copyright 2009, 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. +*/ +--> + +<EditText xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/data" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:minLines="15" + android:gravity="top"/> + diff --git a/tests/ImfTest/res/layout/one_edit_text_activity.xml b/tests/ImfTest/res/layout/one_edit_text_activity.xml new file mode 100755 index 0000000..09925e1 --- /dev/null +++ b/tests/ImfTest/res/layout/one_edit_text_activity.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* //device/samples/SampleCode/res/layout/baseline_1.xml +** +** Copyright 2007, 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="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" +> + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:baselineAligned="false"> + + <View android:id="@+id/blank" + android:layout_height="0dip" + android:layout_width="fill_parent" + android:layout_weight="1" + /> + + <EditText android:id="@+id/dialog_edit_text" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:scrollHorizontally="true" + android:textAppearance="?android:attr/textAppearanceMedium" + /> + </LinearLayout> + + <View + android:layout_width="fill_parent" + android:layout_height="1dip" + android:background="@android:drawable/divider_horizontal_dark" + /> +</LinearLayout> diff --git a/tests/ImfTest/res/layout/sample_edit_text.xml b/tests/ImfTest/res/layout/sample_edit_text.xml new file mode 100755 index 0000000..99a5cf8 --- /dev/null +++ b/tests/ImfTest/res/layout/sample_edit_text.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* //device/samples/SampleCode/res/layout/baseline_1.xml +** +** Copyright 2007, 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="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" +> + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:orientation="horizontal" + android:baselineAligned="false" + android:gravity="center_vertical" + > + + <TextView android:id="@+id/label" + android:layout_width="100dip" + android:layout_height="wrap_content" + android:gravity="right|center_vertical" + /> + + <EditText android:id="@+id/data" + android:layout_width="0dip" + android:layout_weight="1" + android:layout_height="wrap_content" + android:layout_marginLeft="8dip" + /> + </LinearLayout> + + <View + android:layout_width="fill_parent" + android:layout_height="1dip" + android:background="@android:drawable/divider_horizontal_dark" + /> +</LinearLayout> diff --git a/tests/ImfTest/res/values/config.xml b/tests/ImfTest/res/values/config.xml new file mode 100644 index 0000000..5ae40a3 --- /dev/null +++ b/tests/ImfTest/res/values/config.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/** + * Copyright (c) 2009, 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. + */ +--> +<resources> + <bool name="def_expect_ime_autopop">false</bool> +</resources> diff --git a/tests/ImfTest/res/values/strings.xml b/tests/ImfTest/res/values/strings.xml new file mode 100755 index 0000000..fc87480 --- /dev/null +++ b/tests/ImfTest/res/values/strings.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 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. +*/ +--> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Strings for sample activities --> + <string name="normal_edit_text_label">Normal</string> + <string name="uri_edit_text_label">Uri</string> + <string name="email_address_edit_text_label">Email Address</string> + <string name="email_subject_edit_text_label">Email Subject</string> + <string name="email_content_edit_text_label">Email Content</string> + <string name="person_name_edit_text_label">Person Name</string> + <string name="postal_address_edit_text_label">Postal Address</string> + <string name="password_edit_text_label">Password</string> + <string name="search_string_edit_text_label">Search String</string> + <string name="web_edit_text_label">Web Edit Text</string> + <string name="signed_number_edit_text_label">Signed Number</string> + <string name="decimal_number_edit_text_label">Decimal Number</string> + <string name="phone_number_edit_text_label">Phone Number</string> + <string name="normal_datetime_edit_text_label">Datetime</string> + <string name="date_edit_text_label">Date</string> + <string name="time_edit_text_label">Time</string> + <string name="cap_chars_edit_text_label">Cap Chars</string> + <string name="cap_words_edit_text_label">Cap Words</string> + <string name="multiline_edit_text_label">Multiline</string> + <string name="search_edit_text_label">Search (flag)</string> + <string name="cap_sentences_edit_text_label">Cap Sentences</string> + <string name="auto_complete_edit_text_label">Auto Complete</string> + <string name="auto_correct_edit_text_label">Auto Correct</string> + <string name="test_dialog">Test Dialog</string> + <string name="open_dialog_scrollable">open scrollable dialog</string> + <string name="open_dialog_nonscrollable">open nonscrollable dialog</string> + + +</resources> |