diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-02-10 15:44:00 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-02-10 15:44:00 -0800 |
commit | d24b8183b93e781080b2c16c487e60d51c12da31 (patch) | |
tree | fbb89154858984eb8e41556da7e9433040d55cd4 /tests/ImfTest/res | |
parent | f1e484acb594a726fb57ad0ae4cfe902c7f35858 (diff) | |
download | frameworks_base-d24b8183b93e781080b2c16c487e60d51c12da31.zip frameworks_base-d24b8183b93e781080b2c16c487e60d51c12da31.tar.gz frameworks_base-d24b8183b93e781080b2c16c487e60d51c12da31.tar.bz2 |
auto import from //branches/cupcake/...@130745
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/values/strings.xml | 11 |
4 files changed, 124 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/values/strings.xml b/tests/ImfTest/res/values/strings.xml index a56c363..fc87480 100755 --- a/tests/ImfTest/res/values/strings.xml +++ b/tests/ImfTest/res/values/strings.xml @@ -35,5 +35,16 @@ <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> |