2012-09-06 4 views
1

주 창 하단의 ScrollView 바로 아래에있는 내 EditText의 팝업 SoftKeyboard로 해결 방법을 찾을 수 없습니다. 는 여기 솔루션을 찾고 하루를 만들었지 만, 모든 조언 : focusableIn TouchMode를 = "true"로 및 안드로이드 : 안드로이드 descendantFocusability = "beforeDescendants" Android 4.0 softkeyboard가 EditText를 겹칩니다.

나는 안드로이드를 추가 포커스 = "true"로 안드로이드를 : focusableInTouchMode = "true"- 도움이되지 않았습니다.

Ajusting 매니페스트 :

<activity 
    android:name=".mvc.views.SightingDetailsActivity" 
    android:theme="@android:style/Theme.Black" 
    android:screenOrientation="portrait" 
    android:windowSoftInputMode="stateHidden|adjustPan" 
    /> 

안드로이드 4.0 이하 (2.2, 2.3 및 3.2)에 대한 문제를 해결했지만 안드로이드 4.0보다 대한 문제점을 해결하지 않았다.

답변

0
use scroll View as a parent and put the other layout component as 
a child inside this scroll View. 

    <?xml version="1.0" encoding="utf-8"?> 
    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:paddingLeft="30dp" 
    android:paddingRight="30dp" 
    android:layout_height="match_parent"> 
<TableLayout 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:shrinkColumns="*" 
    android:stretchColumns="*" 
    android:focusableInTouchMode="true"> 
    <TableRow 
     android:layout_width="match_parent" 
     android:padding="20dp" 
     android:layout_height="wrap_content"> 
     <TextView 
      android:text="@string/introduction" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:textSize="27dp" 
      android:textColor="@color/green" 
      android:layout_span="4" 
      android:gravity="center_horizontal"/> 
    </TableRow> 
    <TableRow 
      android:layout_width="match_parent" 
      android:layout_height="1dp" 
      android:background="@color/green"> 
     <TextView android:layout_span="2" 
      android:layout_height="1dp" 
      android:layout_width="match_parent" 
      android:text=""> 
     </TextView> 
     </TableRow> 
    </ScrollView> 
+0

활동 페이지의 디자인에 따르면 EditText는 스크롤되는 ScrollView와 관계없이 항상 레이아웃의 맨 아래에 있어야합니다. –

관련 문제