Skip to content

Set height for header view #27

@robertotucci

Description

@robertotucci

Hi,
I'm not enabled to set the height params for header view in my project...
Pratically, I built an header layout but the layout_height doesn't seem to be read and when I execute the code, this height params was reset and I don't know why!

This is my header view:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="100dp"
    android:background="@color/dark_gray">

    //...other widgets

</RelativeLayout>

When I try to change the layout_height (100dp in my snippet code), doesn't change the height when I execute the code...

How can I solve?

Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions