看一看xml文件中的代碼,我使用兩個文本瀏覽和一個按鈕... 問題是,當我點擊一個文本瀏覽器默認鍵盤出現和一半的第二個textview和按鈕隱藏...然後你必須手動關閉鍵盤,然後你將能夠點擊發送按鈕...textview和按鈕以顯示鍵盤時收縮
我的問題是我該如何執行,當鍵盤顯示的全視圖向上滑動或收縮,從而使按鈕可見....
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<EditText
android:id="@+id/etRecieverNum"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textNoSuggestions"
>
</EditText>
<EditText
android:id="@+id/etMessageToBeSent"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="0.82"
android:gravity="top|left"
android:inputType="textNoSuggestions"
/>
<Button
android:id="@+id/bSend"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Send" />
</LinearLayout>
是,幫助....但還有一件事.. 。當我鍵入textview的文字繼續下去,新的行不開始......我的意思是當空格或textview的寬度結束它應該來到下一行,但它繼續直接 – kashifmehmood 2012-04-13 06:10:47