2011-11-23 2 views
1

ICS 키보드를 포팅했는데 제대로 작동합니다. 하지만 LDPI/MDPI 장치의 문제에 직면하고 있습니다. 마지막 줄이 잘립니다. 사진 http://img406.imageshack.us/img406/6343/screenshot1321903105942.png키보드가 화면 밖에 있습니다.

keyobard 뷰의 정의에

링크는 다음과 같은 XML입니다.

InputView가있는 LinearLayout

<com.android.inputmethod.latin.InputView 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:latin="http://schemas.android.com/apk/res/inputmethod.latin.ported" 
    android:orientation="vertical" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
> 
    <View 
     android:id="@+id/key_preview_backing" 
     android:layout_width="match_parent" 
     android:layout_height="@dimen/key_preview_backing_height" /> 

    <!-- On tablets, the suggestions strip is centered with horizontal paddings on both sides 
     because width of the landscape mode is too long for the suggestions strip. This 
     LinearLayout is required to hold the paddings. --> 
    <LinearLayout 
     android:id="@+id/suggestions_container" 
     android:orientation="horizontal" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
    > 
     <View 
      android:layout_width="@dimen/suggestions_strip_padding" 
      android:layout_height="@dimen/suggestions_strip_height" 
      style="?attr/suggestionsStripBackgroundStyle" /> 
     <com.android.inputmethod.latin.SuggestionsView 
      android:id="@+id/suggestions_view" 
      android:layout_weight="1.0" 
      android:layout_width="0dp" 
      android:layout_height="@dimen/suggestions_strip_height" 
      android:gravity="center_vertical" 
      style="?attr/suggestionsViewStyle" /> 
     <View 
      android:layout_width="@dimen/suggestions_strip_padding" 
      android:layout_height="@dimen/suggestions_strip_height" 
      style="?attr/suggestionsStripBackgroundStyle" /> 
    </LinearLayout> 

    <com.android.inputmethod.keyboard.LatinKeyboardView 
     android:id="@+id/keyboard_view" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" /> 
</com.android.inputmethod.latin.InputView> 

당신이

답변

3

같은 문제가 있었다 감사 확장합니다. 이 문제를 해결하기 위해 나는 키보드의 동작에 영향을주지 않았다 5 6에서 200

<integer name="max_more_suggestions_row">6</integer> 

240에서

<dimen name="key_preview_backing_height">240dip</dimen> 

감소하지만 같은 문제를 해결했습니다. LatinImeLogger.java의 sVISUALDEBUG를 true로 설정하여 시각적 디버그를 켤 수 있으며 key_preview_backing이 차지하는 영역을 빨간색으로 투명하게 볼 수 있습니다.

이보기 뒤의 아무 것도 클릭 할 수없는 경우 다른 문제가 있습니다.

관련 문제