I have a simple TextView with a singleLine. I would like to set the height to match_parent/fill_parent, but the behaviour of Android is to only to wrap_content.
Is there a way to force that the TextView takes all height ?
Tkx
Edit :
This is what I get :
and my layout :
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:paddingLeft="13dp"
android:paddingRight="3dp"
android:textColor="@android:color/white"
android:textStyle="bold" />
[...]
</RelativeLayout>
For that
TextView
parent width, you may usewrap_content
.