Add your extras in your header
like so:
<header android:title="Display" >
<extra
android:name="separator"
android:value="true" />
</header>
And then retrieve the value with the following:
boolean isSeparator = false;
Bundle extras = header.fragmentArguments;
if (extras != null)
{
isSeparator = extras.containsKey("separator");
}
Note that you want to use header.fragmentArguments
instead of the .extras
field.