2011-02-05 12 views
0

私はedittextビューとlistviewをアクティビティに持っています。ユーザが画面上のレイアウトが上がっているときに、edittext仮想キーパッドがクリックされたときに到着しました。仮想キーパッドが私の画面がダウンしているときに隠れている場合。これを避けるにはどうすればいいですか?私はレイアウトを同じ位置にして、上記のレイアウトに仮想キーパッドを表示します。私はレイアウトでlistviewを使用したので、レイアウトだけが上がっています。誰も私にどのようにレイアウトビューを使用して移動しないように教えることができますか? これは私のレイアウトファイルです:アンドロイドに表示されたバーチャルキーパッドのリストビュー

<?xml version="1.0" encoding="utf-8"?> 
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="@color/white" android:id="@+id/mainrelativelayout" android:layout_width="fill_parent" android:layout_height="fill_parent"> 
<TableLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:background="@color/white"> 
    <TableRow> 
    <EditText android:layout_column="0" android:focusable="true" android:focusableInTouchMode="true" android:id="@+id/edtsearch" android:singleLine="true" android:hint="Enter company name or ticker" android:layout_width="300dip" android:layout_height="40dip" android:textSize="13dip" android:textColor="@color/gray1"></EditText> 
<ImageView android:layout_column="1" android:src="@drawable/clearbutton" android:paddingTop="5dip" android:id="@+id/imgsearch" android:layout_width="wrap_content" android:layout_height="wrap_content"></ImageView> 
    </TableRow> 
    <TableRow> 
    <ListView android:layout_column="0" android:layout_span="2" android:id="@+id/lstcontent" android:layout_width="wrap_content" android:layout_height="wrap_content"></ListView> 
    </TableRow> 

    </TableLayout> 
    <TableLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="30dip" 
    android:id="@+id/imglinear" 
    android:background="@color/white" 
    android:layout_alignParentBottom="true" 
    android:paddingTop="5dip" 
    android:orientation="horizontal" 
    > 
    <TableRow> 
<ImageView android:id="@+id/ImageView15" android:paddingRight="20dip" android:layout_gravity="left" android:src="@drawable/questbutton" android:layout_width="wrap_content" android:layout_height="wrap_content"></ImageView> 
</TableRow> 
</TableLayout> 

</RelativeLayout> 

任意のヘルプは

をいただければ幸い私ものAndroidManifest.xmlに与えた:動作しない

android:windowSoftInputMode="adjustPan|adjustResize" 

おかげ

答えて

関連する問題