diff options
Diffstat (limited to 'java/res/layout')
-rw-r--r-- | java/res/layout/candidate.xml | 49 | ||||
-rw-r--r-- | java/res/layout/candidates.xml | 51 |
2 files changed, 78 insertions, 22 deletions
diff --git a/java/res/layout/candidate.xml b/java/res/layout/candidate.xml new file mode 100644 index 000000000..37179d2af --- /dev/null +++ b/java/res/layout/candidate.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2010, 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="match_parent" + android:layout_height="@dimen/candidate_strip_height" + android:orientation="horizontal" +> + <ImageView + android:id="@+id/candidate_divider" + android:layout_width="wrap_content" + android:layout_height="@dimen/candidate_strip_height" + android:visibility="gone" + android:focusable="false" + android:clickable="false" + android:src="@drawable/keyboard_suggest_strip_divider" + android:gravity="center_vertical|center_horizontal" /> + <Button + android:id="@+id/candidate_word" + android:layout_width="wrap_content" + android:layout_height="@dimen/candidate_strip_height" + android:minWidth="@dimen/candidate_min_touchable_width" + android:textSize="@dimen/candidate_text_size" + android:textColor="@color/candidate_normal" + android:background="@drawable/btn_candidate" + android:focusable="true" + android:clickable="true" + android:gravity="center_vertical|center_horizontal" + android:paddingLeft="12dip" + android:paddingRight="12dip" /> +</LinearLayout> diff --git a/java/res/layout/candidates.xml b/java/res/layout/candidates.xml index b89d44290..1b8d04183 100644 --- a/java/res/layout/candidates.xml +++ b/java/res/layout/candidates.xml @@ -1,38 +1,45 @@ <?xml version="1.0" encoding="utf-8"?> <!-- -/* +/* ** -** Copyright 2008, The Android Open Source Project +** Copyright 2010, 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 +** 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 +** 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 +** 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:orientation="horizontal" - android:layout_width="match_parent" - android:layout_height="@dimen/candidate_strip_height" - android:background="@drawable/keyboard_suggest_strip" - > - - <com.android.inputmethod.latin.CandidateView - android:id="@+id/candidates" + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="@dimen/candidate_strip_height" + android:background="@drawable/keyboard_suggest_strip" + android:paddingRight="@dimen/candidate_strip_padding" + android:paddingLeft="@dimen/candidate_strip_padding" +> + <HorizontalScrollView + android:id="@+id/candidates_scroll_view" android:layout_width="wrap_content" android:layout_height="@dimen/candidate_strip_height" - android:layout_weight="1" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/candidate_strip_fading_edge_length" - /> - + android:scrollbars="none" + > + <com.android.inputmethod.latin.CandidateView + android:id="@+id/candidates" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="@dimen/candidate_strip_height" + android:background="@drawable/keyboard_suggest_strip" /> + </HorizontalScrollView> </LinearLayout> |