Fix suggestion strip layout
This change also removes unused drawable and xml resources. Bug: 4181825 Change-Id: Ia723376bc5d40900a513df62e89cdfe35b2c859fmain
parent
82730b0e09
commit
a8c163f262
Binary file not shown.
Before Width: | Height: | Size: 248 B |
Binary file not shown.
Before Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
Before Width: | Height: | Size: 205 B |
Binary file not shown.
Before Width: | Height: | Size: 593 B |
Binary file not shown.
Before Width: | Height: | Size: 1012 B |
|
@ -24,6 +24,4 @@
|
||||||
<item
|
<item
|
||||||
android:state_pressed="true"
|
android:state_pressed="true"
|
||||||
android:drawable="@drawable/btn_candidate_pressed" />
|
android:drawable="@drawable/btn_candidate_pressed" />
|
||||||
<item
|
|
||||||
android:drawable="@drawable/btn_candidate_normal" />
|
|
||||||
</selector>
|
</selector>
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Copyright (C) 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.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
|
|
||||||
<item android:state_pressed="false"
|
|
||||||
android:drawable="@android:color/transparent" />
|
|
||||||
|
|
||||||
<item android:state_pressed="true"
|
|
||||||
android:drawable="@drawable/highlight_pressed" />
|
|
||||||
|
|
||||||
</selector>
|
|
|
@ -20,24 +20,24 @@
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/candidate_strip_height"
|
android:layout_height="match_parent"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingRight="@dimen/candidate_padding"
|
android:paddingRight="@dimen/candidate_padding"
|
||||||
>
|
>
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/candidate_divider"
|
android:id="@+id/candidate_divider"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/candidate_strip_height"
|
android:layout_height="match_parent"
|
||||||
|
android:src="@drawable/keyboard_suggest_strip_divider"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:src="@drawable/keyboard_suggest_strip_divider"
|
|
||||||
android:gravity="center_vertical|center_horizontal" />
|
android:gravity="center_vertical|center_horizontal" />
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/candidate_word"
|
android:id="@+id/candidate_word"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/candidate_strip_height"
|
android:layout_height="match_parent"
|
||||||
android:minWidth="@dimen/candidate_min_width"
|
android:minWidth="@dimen/candidate_min_width"
|
||||||
android:textSize="@dimen/candidate_text_size"
|
android:textSize="@dimen/candidate_text_size"
|
||||||
android:textColor="@color/candidate_normal"
|
android:textColor="@color/candidate_normal"
|
||||||
|
@ -49,12 +49,11 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/candidate_debug_info"
|
android:id="@+id/candidate_debug_info"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:textSize="10dip"
|
android:textSize="10dip"
|
||||||
android:textColor="#ff808080"
|
android:textColor="#ff808080"
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:gravity="bottom"
|
android:gravity="bottom" />
|
||||||
android:paddingLeft="4dip" />
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/candidate_strip_height"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/keyboard_suggest_strip_holo"
|
android:background="@drawable/keyboard_suggest_strip_holo"
|
||||||
android:paddingRight="@dimen/candidate_strip_padding"
|
android:paddingRight="@dimen/candidate_strip_padding"
|
||||||
android:paddingLeft="@dimen/candidate_strip_padding"
|
android:paddingLeft="@dimen/candidate_strip_padding"
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
<HorizontalScrollView
|
<HorizontalScrollView
|
||||||
android:id="@+id/candidates_scroll_view"
|
android:id="@+id/candidates_scroll_view"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/candidate_strip_height"
|
android:layout_height="wrap_content"
|
||||||
android:fadingEdge="horizontal"
|
android:fadingEdge="horizontal"
|
||||||
android:fadingEdgeLength="@dimen/candidate_strip_fading_edge_length"
|
android:fadingEdgeLength="@dimen/candidate_strip_fading_edge_length"
|
||||||
android:scrollbars="none"
|
android:scrollbars="none"
|
||||||
|
|
|
@ -20,24 +20,24 @@
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/candidate_strip_height"
|
android:layout_height="match_parent"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingRight="@dimen/candidate_padding"
|
android:paddingRight="@dimen/candidate_padding"
|
||||||
>
|
>
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/candidate_divider"
|
android:id="@+id/candidate_divider"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/candidate_strip_height"
|
android:layout_height="match_parent"
|
||||||
|
android:src="@drawable/keyboard_suggest_strip_divider"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:src="@drawable/keyboard_suggest_strip_divider"
|
|
||||||
android:gravity="center_vertical|center_horizontal" />
|
android:gravity="center_vertical|center_horizontal" />
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/candidate_word"
|
android:id="@+id/candidate_word"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/candidate_strip_height"
|
android:layout_height="match_parent"
|
||||||
android:minWidth="@dimen/candidate_min_width"
|
android:minWidth="@dimen/candidate_min_width"
|
||||||
android:textSize="@dimen/candidate_text_size"
|
android:textSize="@dimen/candidate_text_size"
|
||||||
android:textColor="@color/candidate_normal"
|
android:textColor="@color/candidate_normal"
|
||||||
|
@ -49,12 +49,11 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/candidate_debug_info"
|
android:id="@+id/candidate_debug_info"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:textSize="10dip"
|
android:textSize="10dip"
|
||||||
android:textColor="#ff808080"
|
android:textColor="#ff808080"
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:gravity="bottom"
|
android:gravity="bottom" />
|
||||||
android:paddingLeft="4dip" />
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/candidate_strip_height"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/keyboard_suggest_strip"
|
android:background="@drawable/keyboard_suggest_strip"
|
||||||
android:paddingRight="@dimen/candidate_strip_padding"
|
android:paddingRight="@dimen/candidate_strip_padding"
|
||||||
android:paddingLeft="@dimen/candidate_strip_padding"
|
android:paddingLeft="@dimen/candidate_strip_padding"
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
<HorizontalScrollView
|
<HorizontalScrollView
|
||||||
android:id="@+id/candidates_scroll_view"
|
android:id="@+id/candidates_scroll_view"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/candidate_strip_height"
|
android:layout_height="wrap_content"
|
||||||
android:fadingEdge="horizontal"
|
android:fadingEdge="horizontal"
|
||||||
android:fadingEdgeLength="@dimen/candidate_strip_fading_edge_length"
|
android:fadingEdgeLength="@dimen/candidate_strip_fading_edge_length"
|
||||||
android:scrollbars="none"
|
android:scrollbars="none"
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
<color name="latinkeyboard_bar_language_shadow_white">#80000000</color>
|
<color name="latinkeyboard_bar_language_shadow_white">#80000000</color>
|
||||||
<color name="latinkeyboard_bar_language_shadow_black">#80FFFFFF</color>
|
<color name="latinkeyboard_bar_language_shadow_black">#80FFFFFF</color>
|
||||||
<color name="latinkeyboard_bar_language_text">#FFC0C0C0</color>
|
<color name="latinkeyboard_bar_language_text">#FFC0C0C0</color>
|
||||||
<color name="latinkeyboard_extension_background">#A0000000</color>
|
|
||||||
<color name="latinkeyboard_feedback_language_text">#FFFFFFFF</color>
|
<color name="latinkeyboard_feedback_language_text">#FFFFFFFF</color>
|
||||||
<color name="latinkeyboard_key_color_white">#FFFFFFFF</color>
|
<color name="latinkeyboard_key_color_white">#FFFFFFFF</color>
|
||||||
<color name="latinkeyboard_key_color_black">#FF000000</color>
|
<color name="latinkeyboard_key_color_black">#FF000000</color>
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
<?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.
|
|
||||||
*/
|
|
||||||
-->
|
|
||||||
|
|
||||||
<Keyboard xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
|
||||||
latin:keyWidth="9.45%p"
|
|
||||||
latin:horizontalGap="0px"
|
|
||||||
latin:verticalGap="0px"
|
|
||||||
latin:rowHeight="@dimen/popup_key_height"
|
|
||||||
>
|
|
||||||
</Keyboard>
|
|
|
@ -1,84 +0,0 @@
|
||||||
<?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.
|
|
||||||
*/
|
|
||||||
-->
|
|
||||||
|
|
||||||
<merge
|
|
||||||
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
|
||||||
>
|
|
||||||
<switch>
|
|
||||||
<case
|
|
||||||
latin:hasSettingsKey="false"
|
|
||||||
>
|
|
||||||
<switch>
|
|
||||||
<!-- When this qwerty keyboard has no voice key but voice key is enabled, then
|
|
||||||
symbol keyboard will have mic key. That means we should use "?123mic" key here.
|
|
||||||
-->
|
|
||||||
<case
|
|
||||||
latin:voiceKeyEnabled="true"
|
|
||||||
latin:hasVoiceKey="false"
|
|
||||||
>
|
|
||||||
<Key
|
|
||||||
latin:code="@integer/key_switch_alpha_symbol"
|
|
||||||
latin:keyIcon="@drawable/sym_bkeyboard_123_mic"
|
|
||||||
latin:iconPreview="@drawable/sym_keyboard_feedback_123_mic"
|
|
||||||
latin:keyWidth="20%p"
|
|
||||||
latin:isFunctional="true"
|
|
||||||
latin:keyEdgeFlags="left" />
|
|
||||||
</case>
|
|
||||||
<default>
|
|
||||||
<Key
|
|
||||||
latin:code="@integer/key_switch_alpha_symbol"
|
|
||||||
latin:keyLabel="@string/label_to_symbol_key"
|
|
||||||
latin:keyWidth="20%p"
|
|
||||||
latin:isFunctional="true"
|
|
||||||
latin:keyEdgeFlags="left" />
|
|
||||||
</default>
|
|
||||||
</switch>
|
|
||||||
</case>
|
|
||||||
<case
|
|
||||||
latin:hasSettingsKey="true"
|
|
||||||
>
|
|
||||||
<switch>
|
|
||||||
<!-- When this qwerty keyboard has no voice key but voice key is enabled, then
|
|
||||||
symbol keyboard will have mic key. That means we should use "?123mic" key here.
|
|
||||||
-->
|
|
||||||
<case
|
|
||||||
latin:voiceKeyEnabled="true"
|
|
||||||
latin:hasVoiceKey="false"
|
|
||||||
>
|
|
||||||
<Key
|
|
||||||
latin:code="@integer/key_switch_alpha_symbol"
|
|
||||||
latin:keyIcon="@drawable/sym_bkeyboard_123_mic"
|
|
||||||
latin:iconPreview="@drawable/sym_keyboard_feedback_123_mic"
|
|
||||||
latin:keyWidth="15%p"
|
|
||||||
latin:isFunctional="true"
|
|
||||||
latin:keyEdgeFlags="left" />
|
|
||||||
</case>
|
|
||||||
<default>
|
|
||||||
<Key
|
|
||||||
latin:code="@integer/key_switch_alpha_symbol"
|
|
||||||
latin:keyLabel="@string/label_to_symbol_key"
|
|
||||||
latin:keyWidth="15%p"
|
|
||||||
latin:isFunctional="true"
|
|
||||||
latin:keyEdgeFlags="left" />
|
|
||||||
</default>
|
|
||||||
</switch>
|
|
||||||
</case>
|
|
||||||
</switch>
|
|
||||||
</merge>
|
|
Loading…
Reference in New Issue