Hierarchy

  • HeaderBarItemAndroidProps

Properties

attributedTitle: IAttributedString<any, MobileOSProps<AttributedStringiOSProps, {}>>

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

systemIcon: string | number

Gets/sets the system icon of header bar item. Built-in icons can be set with the corresponding systemIcon value.

Example

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]);

Property

Android

See

https://developer.android.com/reference/android/R.drawable

Since

4.0.2

elevation: number

Gets/sets elevation of the header bar.

Android

Example

``` import Page from '@smartface/native/ui/page'; const myPage = new Page(); myPage.headerBar.android.elevation = 10;

 ```
contentInset: { left: number; right: number }

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.

Type declaration

  • left: number
  • right: number
logoEnabled: boolean

Gets/sets the logo visibility of the HeaderBar. If logo is disable, logo image will newer shown. This property will work only for Android.

Default

false

Android

subtitle: string

Gets/sets subtitle of the header bar. If not set subtitle will not show. This property will work only for Android.

Example

import Page from '@smartface/native/ui/page';
const myPage = new Page();
myPage.headerBar.android.subtitle = 'Hello from HeaderBar Subtitle!';
subtitleFont: IFont

Gets/sets titleFont of header bar subtitle.

Android

Generated using TypeDoc