EditText doesn't fill the whole height of the window

Posted by user565447 on Stack Overflow See other posts from Stack Overflow or by user565447
Published on 2011-01-11T10:44:59Z Indexed on 2011/01/11 10:53 UTC
Read the original article Hit count: 429

Filed under:
|

EditText doesn't fill the whole height of the window. Here is the code:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:id="@+id/LinearLayout01"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

        <LinearLayout android:id="@+id/LinearLayout02"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        >

            <Button android:id="@+id/bItalic"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                ></Button>

            <Button android:id="@+id/bBold"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                />

            <Button android:id="@+id/bUnderline"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                />

            <Button android:id="@+id/bStrike"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="S"
                />

            <Button android:id="@+id/bSub"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                />

            <Button android:id="@+id/bSup"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                />

            <ImageButton 
                android:id="@+id/bInsertImage"
                android:src="@drawable/insertimage"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

            <ImageButton 
                android:id="@+id/bInsertTable"
                android:src="@drawable/table"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

        </LinearLayout>


        <FrameLayout
            android:id="@+id/FrameLayout02"
            android:layout_height="fill_parent"
            android:layout_width="fill_parent"
            >

            <TabHost android:id="@+id/tabhost"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent">
                <TabWidget android:id="@android:id/tabs"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                />
                <FrameLayout android:id="@android:id/tabcontent"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:paddingTop="62px">

                    <ScrollView 
                        android:id="@+id/scroll01" 
                        android:layout_width="fill_parent" 
                        android:layout_height="fill_parent">

                        <HorizontalScrollView 
                            android:id="@+id/scroll_hor01" 
                            android:layout_width="fill_parent" 
                            android:layout_height="fill_parent">
                                <EditText 
                                    android:id="@+id/VisualPane" 
                                    android:layout_width="fill_parent" 
                                    android:layout_height="fill_parent"
                                 />
                        </HorizontalScrollView>
                    </ScrollView>

                    <ScrollView 
                        android:id="@+id/scroll02" 
                        android:layout_width="fill_parent" 
                        android:layout_height="fill_parent">

                        <HorizontalScrollView 
                            android:id="@+id/scroll_hor02" 
                            android:layout_width="fill_parent" 
                            android:layout_height="fill_parent">
                                <EditText 
                                    android:id="@+id/HTMLPane" 
                                    android:layout_width="fill_parent" 
                                    android:layout_height="fill_parent" />  
                        </HorizontalScrollView>
                    </ScrollView>   
                </FrameLayout>
            </TabHost>
        </FrameLayout>

</LinearLayout>

Here is a screenshot: http://s48.radikal.ru/i122/1101/a4/030018887e7b.jpg

Why doesn't EditText fill the whole height of the window?

© Stack Overflow or respective owner

Related posts about android

Related posts about edittext