
<GridLayout 
    xmlns="http://schemas.nativescript.org/tns.xsd"
    xmlns:favoritesView="components/favorites-view"
    xmlns:historyView="components/history-view"
    loaded="onLoaded"
    rows="*,44" 
    columns="*">
    <GridLayout loaded="onContentLayoutLoaded" orientation="horizontal">
        <favoritesView:FavoritesView id="favorites" visibility="{{ index === 0 ? 'visible' : 'collapsed' }}" />
        <historyView:HistoryView id="history" visibility="{{ index === 1 ? 'visible' : 'collapsed' }}" />
    </GridLayout>
    <GridLayout loaded="onTabLayoutLoaded" row="1" rows="*" columns="*,*" backgroundColor="#EEEEEE">
        <Button col="0" text="star_border" class="{{ index === 0 ? 'material-icon toggle-btn-on' : 'material-icon toggle-btn-off'}}" tap="onTabSelect" />
        <Button col="1" text="history" class="{{ index === 1 ? 'material-icon toggle-btn-on' : 'material-icon toggle-btn-off'}}" tap="onTabSelect" />
    </GridLayout>
</GridLayout>

<GridLayout 
    xmlns="http://schemas.nativescript.org/tns.xsd"
    xmlns:favoritesView="components/favorites-view"
    xmlns:historyView="components/history-view"
    loaded="onLoaded"
    rows="44,auto,*" 
    columns="*">
    <GridLayout loaded="onTabLayoutLoaded" row="0" rows="*" columns="*,*" backgroundColor="#FEFEFE">
        <Button col="0" text="star_border" class="{{ index === 0 ? 'material-icon toggle-btn-on' : 'material-icon toggle-btn-off'}}" tap="onTabSelect" />
        <Button col="1" text="history" class="{{ index === 1 ? 'material-icon toggle-btn-on' : 'material-icon toggle-btn-off'}}" tap="onTabSelect" />
    </GridLayout>
    <GridLayout row="1" height="1px" backgroundColor="#BBBBBB"></GridLayout>
    <GridLayout loaded="onContentLayoutLoaded" row="2" orientation="horizontal">
        <favoritesView:FavoritesView id="favorites" visibility="{{ index === 0 ? 'visible' : 'collapsed' }}" />
        <historyView:HistoryView id="history" visibility="{{ index === 1 ? 'visible' : 'collapsed' }}" />
    </GridLayout>
</GridLayout>
Move bookmarks view tabs to top
Move bookmarks view tabs to top
