0
I have my code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/content_reserva"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="fabiohcnobre.jhotelcolonialdosnobres.ReservaActivity"
tools:showIn="@layout/app_bar_reserva">
<RelativeLayout
android:id="@+id/adViewContainer"
android:layout_width="match_parent"
android:layout_height="50dp" />
<TextView
android:text="@string/subtitle_reserva"
android:layout_width="match_parent"
android:id="@+id/TextView1"
android:layout_height="50dp" />
<ListView
android:id="@+id/lv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/cardview_dark_background"/>
</RelativeLayout>
But the LinearLayout
doesn’t take the whole screen and mine ListView
only one item appears. I want it to appear according to the number of items.
I edited it so that Ad is aligned below.
– viana
Thank you now gave proper thank you
– Fabio Nobre