Tune padding of candidate word
Change-Id: I980e568f9b4b87b0f414aa7ce0197dba39a7708f
This commit is contained in:
parent
9ecad8c2e8
commit
4700a6f2b0
4 changed files with 9 additions and 5 deletions
|
@ -23,7 +23,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/candidate_strip_height"
|
||||
android:orientation="horizontal"
|
||||
android:paddingRight="12dip"
|
||||
android:paddingRight="@dimen/candidate_padding"
|
||||
>
|
||||
<ImageView
|
||||
android:id="@+id/candidate_divider"
|
||||
|
@ -38,14 +38,14 @@
|
|||
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:minWidth="@dimen/candidate_min_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:paddingLeft="@dimen/candidate_padding" />
|
||||
<TextView
|
||||
android:id="@+id/candidate_debug_info"
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
@ -44,5 +44,7 @@
|
|||
|
||||
<dimen name="candidate_strip_height">46dip</dimen>
|
||||
<dimen name="candidate_strip_padding">15.0mm</dimen>
|
||||
<dimen name="candidate_min_width">0.3in</dimen>
|
||||
<dimen name="candidate_padding">12dip</dimen>
|
||||
<dimen name="candidate_text_size">22dip</dimen>
|
||||
</resources>
|
||||
|
|
|
@ -49,6 +49,8 @@
|
|||
<dimen name="candidate_strip_height">42dip</dimen>
|
||||
<dimen name="candidate_strip_fading_edge_length">63dip</dimen>
|
||||
<dimen name="candidate_strip_padding">0dip</dimen>
|
||||
<dimen name="candidate_min_width">0.3in</dimen>
|
||||
<dimen name="candidate_padding">0dip</dimen>
|
||||
<dimen name="candidate_text_size">18dip</dimen>
|
||||
<dimen name="spacebar_vertical_correction">4dip</dimen>
|
||||
<!-- If the screen height in landscape is larger than the below value, then the keyboard
|
||||
|
@ -57,5 +59,4 @@
|
|||
<dimen name="bubble_pointer_offset">22dip</dimen>
|
||||
|
||||
<dimen name="key_hysteresis_distance">0.05in</dimen>
|
||||
<dimen name="candidate_min_touchable_width">0.3in</dimen>
|
||||
</resources>
|
||||
|
|
|
@ -603,7 +603,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
|
||||
setCandidatesViewShownInternal(isCandidateStripVisible(),
|
||||
false /* needsInputViewShown */ );
|
||||
updateSuggestions();
|
||||
// Delay updating suggestions because keyboard input view may not be shown at this point.
|
||||
mHandler.postUpdateSuggestions();
|
||||
|
||||
// If the dictionary is not big enough, don't auto correct
|
||||
mHasDictionary = mSuggest.hasMainDictionary();
|
||||
|
|
Loading…
Reference in a new issue