I'm a pretty big noob when it comes to android and I'm stuck in a situation. How it should be
I want my table layout to go under my button located in the linear layout but it just overlaps.
Eventually I will have to be able to click the button to hide the table entirely.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="eu.agp_it.agpmobilemover.OverviewActivity">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:weightSum="1.0"
android:gravity="center"
android:id="@+id/layout_button_today"
>
<Button
android:id="@+id/overview_button_today"
android:layout_height="wrap_content"
android:layout_weight="0.95"
android:layout_width="0dip"
android:textSize="20sp"
android:text="@string/overview_today"
android:gravity="center"/>
</LinearLayout>
<TableLayout
android:layout_width="20sp"
android:layout_height="fill_parent"
android:visibility="visible"
>
<TableRow>
<TextView android:id="@+id/label_depart" android:text="@string/overview_depart_time"/>
<TextView />
</TableRow>
</TableLayout>
<LinearLayout
android:id="@+id/layout_button_upcoming"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:weightSum="1.0"
android:gravity="center"
android:layout_above="@id/layout_button_today">
<Button
android:id="@+id/overview_button_upcoming"
android:layout_height="wrap_content"
android:layout_weight="0.95"
android:layout_width="0dip"
android:textSize="20sp"
android:text="@string/overview_upcoming"
android:gravity="center"/>
</LinearLayout>
</RelativeLayout>