I have below layout. When i click on messageTextView the keyboard shows only
half. It works fine for bigger size screens in emulator but not in 4*2 inch
screen. What i suppose to do to show full keyboard when screen size of
smaller e.g. 4*2 inch

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"; 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_gravity="center" 
    android:background="@android:color/white" 
    android:orientation="vertical" 
    android:padding="0dp" 
    android:scrollbars="vertical" 
    android:scrollbarStyle="outsideInset"> 
    <Button 
        android:layout_width="20dp" 
        android:layout_height="20dp" 
        android:gravity="bottom" 
        android:id="@+id/closeButton" 
        android:layout_alignParentRight="true" 
        android:layout_alignParentTop="true" 
        android:background="@drawable/QchatClose" /> 
    <ScrollView 
        android:id="@+id/chatHistoryScrollView" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:layout_below="@+id/closeButton" 
        android:layout_centerHorizontal="true" 
        android:background="@android:drawable/editbox_background_normal" 
        android:scrollbarStyle="outsideOverlay" 
        android:scrollbars="vertical" 
        android:fitsSystemWindows="true" 
        android:layout_marginBottom="40dp" 
        android:visibility="visible"> 
        <LinearLayout 
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content" 
            android:gravity="center" 
            android:orientation="vertical" 
            android:layout_marginBottom="40dp"> 
            <TextView 
                android:id="@+id/historyTextView" 
                android:layout_width="fill_parent" 
                android:layout_height="wrap_content" 
                android:textColor="#000000" 
                android:textSize="14dp" 
                android:padding="5dp" /> 
        </LinearLayout> 
    </ScrollView> 
    <EditText 
        android:id="@+id/messageTextView" 
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        android:layout_alignParentLeft="true" 
        android:layout_alignParentBottom="true" 
        android:background="@android:drawable/editbox_background_normal" 
        android:ems="2" 
        android:maxLines="2" 
        android:hint="Type a Message Here!" 
        android:textColor="#000000" 
        android:layout_marginBottom="5dp" 
        android:padding="5dp" 
        android:scrollbars="vertical" 
        android:scrollbarStyle="outsideOverlay" 
        android:singleLine="false"> 
        <requestFocus /> 
    </EditText> 
</RelativeLayout> 

Thanks,

Anand Jagtap.



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/mono-for-android-shows-half-keyboard-when-emulator-screen-of-4-by-2-inch-tp5711726.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to