Gets/sets the system icon of header bar item. Built-in icons can be set with the corresponding systemIcon value.
var myItem = new HeaderBarItem({
android: {
systemIcon: 17301545 // OR 'ic_dialog_email'
},
color: Color.RED,
onPress: function() {
console.log("You pressed Done item!");
}
});
this.headerBar.setItems([myItem]);
https://developer.android.com/reference/android/R.drawable
4.0.2
Gets/sets elevation of the header bar.
``` import Page from '@smartface/native/ui/page'; const myPage = new Page(); myPage.headerBar.android.elevation = 10;
```
Gets/sets the content inset of headerbar. Minimum API Level 21 required. The content inset affects the valid area for Headerbar content other than the navigation button and menu. Insets define the minimum margin for these custom views like titleLayout and can be used to effectively align HeaderBar content along well-known gridlines.
Gets/sets the logo visibility of the HeaderBar. If logo is disable, logo image will newer shown. This property will work only for Android.
false
Gets/sets subtitle of the header bar. If not set subtitle will not show. This property will work only for Android.
import Page from '@smartface/native/ui/page';
const myPage = new Page();
myPage.headerBar.android.subtitle = 'Hello from HeaderBar Subtitle!';
Gets/sets titleFont of header bar subtitle.
Generated using TypeDoc
Gets/sets attributed title of header bar item. If image is not set, attributed title will be shown in the header bar.
Attributed title won't show if item is set as left item to header bar.
Property
Android
Since
4.0.0