2012-09-01 2 views
0

내가 글고 치기를 클릭하면리스트 뷰가 글고 및 기타 구성 요소 의 포함이 팝업, 키보드의 목록보기가 의 하단에 가서 글고에서 텍스트를 삭제 일으키는 팝업고정 레이아웃 키보드가

고정 레이아웃 또는이 문제

에게

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="vertical" > 

    <TextView 
     android:id="@+id/t" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:paddingLeft="7dip" 
     android:paddingTop="7dip" 
     android:text="Mate name" 
     android:textSize="20dip" > 
    </TextView> 

    <RelativeLayout 
     android:id="@+id/relativeLayout1" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" > 

     <Button 
      android:id="@+id/n" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_alignParentRight="true" 
      android:layout_alignParentTop="true" 
      android:drawablePadding="0dip" 
      android:drawableRight="@drawable/icon_name" /> 

     <EditText 
      android:id="@+id/eventname" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:layout_alignParentTop="true" 
      android:layout_toLeftOf="@+id/n" > 
     </EditText> 
    </RelativeLayout> 

    <TextView 
     android:id="@+id/t" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:paddingLeft="7dip" 
     android:paddingTop="7dip" 
     android:text="Match friend" 
     android:textSize="20dip" > 
    </TextView> 

    <RelativeLayout 
     android:id="@+id/relativeLayout1" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" > 

     <Button 
      android:id="@+id/buttonpartner" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_alignParentRight="true" 
      android:layout_alignParentTop="true" 
      android:drawablePadding="0dip" 
      android:drawableRight="@drawable/icon_friend" /> 

     <EditText 
      android:id="@+id/editpartner" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:layout_alignParentTop="true" 
      android:layout_toLeftOf="@+id/buttonpartner" > 
     </EditText> 
    </RelativeLayout> 

    <TextView 
     android:id="@+id/t3" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:paddingLeft="7dip" 
     android:paddingTop="7dip" 
     android:text="Start Mate date" 
     android:textSize="20dip" > 
    </TextView> 

    <RelativeLayout 
     android:id="@+id/relativeLayout1" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" > 

     <Button 
      android:id="@+id/d" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_alignParentRight="true" 
      android:layout_alignParentTop="true" 
      android:drawablePadding="0dip" 
      android:drawableRight="@drawable/icon_cal" /> 

     <EditText 
      android:id="@+id/editd" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:layout_alignParentTop="true" 
      android:layout_toLeftOf="@+id/d" > 
     </EditText> 
    </RelativeLayout> 

addevent.xml

Item.xml을 해결하는 어떤 생각
<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="vertical" > 

    <ListView 
     android:id="@+id/MyList" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:descendantFocusability="beforeDescendants" 
     > 
    </ListView> 

</LinearLayout> 

답변

2

응용 프로그램을 전체 화면 모드로 설정할 수 있습니다. 이렇게하면 키보드가 튀어 나오더라도 요소가 고정됩니다.

내 예제 theme.xml 파일 :

<style name="theme_loading" parent="android:Theme"> 
    <item name="android:windowBackground">@drawable/loading</item> 
    <item name="android:windowNoTitle">true</item> 
    <item name="android:windowFullscreen">false</item> 
    <item name="android:textSize">14sp</item> 
    <item name="android:textColor">@color/textOptionsColor</item> 
    <item name="android:radioButtonStyle">@style/rbStyle</item> 
    <item name="android:buttonStyle">@style/ButtonStyle</item> 
</style> 
관련 문제