• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Troubles with layout

workbench

Lurker
Hi everyone, i've the following layout.xml file:

Code:
<?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">

<!--    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">
-->
    <LinearLayout
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="5dp">

        <Button
            android:id="@+id/date_from_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:onClick="onButtonDateFrom"
            android:layout_margin="5dp"
            android:background="@drawable/buttonshape"
            android:text="@string/datum_from_button" />

        <Button
            android:id="@+id/date_to_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:layout_margin="5dp"
            android:background="@drawable/buttonshape"
            android:onClick="onButtonDateTo"
            android:text="@string/datum_to_button" />


    </LinearLayout>

    <DatePicker
        android:layout_gravity="center"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:visibility="gone"/>

    <LinearLayout
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="5dp">

        <Button
            android:id="@+id/time_from_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:layout_margin="5dp"
            android:background="@drawable/buttonshape"
            android:onClick="onButtonTimeFrom"
            android:text="@string/time_from_button" />

        <Button
            android:id="@+id/time_to_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:layout_margin="5dp"
            android:background="@drawable/buttonshape"
            android:onClick="onButtonTimeTo"
            android:text="@string/time_to_button" />


    </LinearLayout>

    <DatePicker
        android:layout_gravity="center"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:visibility="gone"/>

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:padding="10dp">

        <Button
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/buttonshape"
            android:text="@string/search_start"/>


    </FrameLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <EditText
            android:id="@+id/editText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ems="10"
            android:text="Name" />

    </LinearLayout>


    <!--</ScrollView>-->
</LinearLayout>

But i've the problem that the EditText is not shown. What am i doing wrong here ??
 
Back
Top Bottom