Hi,

we have a strange problem with EditText in a LinearLayout on some HTC
devices (Magic, Legend, Desire, Desire HD). On those devices when you
type more than 4 rows with a non-standard Keyboard or about the size
of the Textbox on the buildin keyboard on Eclair, Froyo (both with
Sense) and a Cyanogen7 (w/o Sense). The textbox shifts out and can not
be reached or seen. The strange thing is, that this behaviour can only
be reproduced on those HTC devices, not on the NexusOne. The problem
arises in landscape and portrait. Does anybody have an idea?

This is the layout:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:orientation="vertical" android:layout_width="fill_parent"
        android:layout_height="fill_parent" android:background="#fff">

        <!-- Buttons -->
        <LinearLayout style="@style/NavBarButtons">

                <Button android:id="@+id/backButton" style="@style/BackButton" 
/>

                <ImageView android:layout_width="wrap_content"
                        android:layout_height="wrap_content" 
android:layout_weight="4" />

        </LinearLayout>

        <!-- Headline -->
        <TextView android:id="@+id/headline"
android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:paddingLeft="7dp"
                android:textSize="20sp" android:textStyle="bold"
android:textColor="@color/blue" />

        <LinearLayout android:orientation="vertical"
                android:layout_width="fill_parent"
android:layout_height="wrap_content"
                android:paddingLeft="8dp" android:paddingRight="12dp"
                android:paddingTop="6dp" android:paddingBottom="6dp"
                android:layout_weight="1">

                <!-- Title -->
                <TextView android:layout_width="wrap_content"
                        android:layout_height="wrap_content" 
android:textColor="@color/
black"
                        android:text="@string/forum_post_title" />

                <EditText android:id="@+id/forumPostTitle"
                        android:layout_width="fill_parent"
android:layout_height="wrap_content"
                        android:singleLine="true" />

                <!-- Content -->
                <TextView android:layout_width="wrap_content"
                        android:layout_height="wrap_content" 
android:textColor="@color/
black"
                        android:text="@string/forum_post_content" />

                <EditText android:id="@+id/forumPostContent"
                        android:layout_width="fill_parent"
android:layout_height="wrap_content"
                        android:layout_weight="1" android:gravity="top"
android:inputType="textMultiLine" />

                <!-- Buttons -->
                <LinearLayout android:orientation="horizontal"
                        android:layout_width="fill_parent"
android:layout_height="wrap_content">

                        <Button android:id="@+id/forumPostSaveButton"
                                android:layout_width="wrap_content"
android:layout_height="wrap_content"
                                android:layout_weight="1" 
android:background="@drawable/btn_blue"
                                android:textColor="#fff" 
android:text="@string/forum_post_save" />

                        <Button android:id="@+id/forumPostPreviewButton"
                                android:layout_width="wrap_content"
android:layout_height="wrap_content"
                                android:layout_weight="1" 
android:layout_marginLeft="12dp"
                                android:background="@drawable/btn_blue" 
android:textColor="#fff"
                                android:text="@string/forum_post_preview" />

                </LinearLayout>

        </LinearLayout>

</LinearLayout>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to