Revision control
Copy as Markdown
<?xml version="1.0" encoding="utf-8"?>
<data>
<import type="org.mozilla.vrbrowser.BuildConfig"/>
<variable
name="viewmodel"
type="org.mozilla.vrbrowser.ui.viewmodel.WindowViewModel" />
<variable
name="settingsmodel"
type="org.mozilla.vrbrowser.ui.viewmodel.SettingsViewModel" />
</data>
<LinearLayout
android:id="@+id/navigationBarContainer"
style="?attr/navigationBarStyle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="0dp">
<org.mozilla.vrbrowser.ui.views.UIButton
android:id="@+id/backButton"
style="?attr/navigationBarButtonStyle"
android:layout_weight="1"
android:src="@drawable/ic_icon_back"
android:tint="@color/midnight"
android:tooltipText="@string/back_tooltip"
android:enabled="@{viewmodel.canGoBack}"
app:privateMode="@{viewmodel.isPrivateSession}"/>
<org.mozilla.vrbrowser.ui.views.UIButton
android:id="@+id/forwardButton"
style="?attr/navigationBarButtonStyle"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:src="@drawable/ic_icon_forward"
android:tooltipText="@string/forward_tooltip"
android:enabled="@{viewmodel.canGoForward}"
app:privateMode="@{viewmodel.isPrivateSession}"/>
<org.mozilla.vrbrowser.ui.views.UIButton
android:id="@+id/reloadButton"
style="?attr/navigationBarButtonStyle"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:src="@{viewmodel.isLoading ? @drawable/ic_icon_exit : @drawable/ic_icon_reload}"
android:tooltipText="@{viewmodel.isLoading ? @string/stop_tooltip : @string/refresh_tooltip}"
app:privateMode="@{viewmodel.isPrivateSession}"/>
<org.mozilla.vrbrowser.ui.views.UIButton
android:id="@+id/homeButton"
style="?attr/navigationBarButtonStyle"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:src="@drawable/ic_icon_home"
android:tooltipText="@string/home_tooltip"
app:privateMode="@{viewmodel.isPrivateSession}"/>
<org.mozilla.vrbrowser.ui.views.NavigationURLBar
android:id="@+id/urlBar"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_weight="100"
android:orientation="horizontal"/>
<org.mozilla.vrbrowser.ui.views.UIButton
android:id="@+id/servoButton"
style="?attr/navigationBarButtonStyle"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:src="@drawable/ic_icon_servo"
android:tooltipText="@string/servo_tooltip"
visibleGone="@{viewmodel.isServoAvailable}"
app:privateMode="@{viewmodel.isPrivateSession}"/>
<RelativeLayout
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_weight="1"
android:layout_marginStart="10dp"
android:scaleType="fitCenter"
android:layout_gravity="center_vertical"
app:visibleGone="@{settingsmodel.isWhatsNewVisible && viewmodel.width > 640}">
<org.mozilla.vrbrowser.ui.views.UIButton
android:id="@+id/whatsNew"
style="?attr/navigationBarButtonStyle"
android:src="@drawable/ic_whats_new"
android:tooltipText="@string/whats_new_tooltip"
app:privateMode="@{viewmodel.isPrivateSession}"/>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="6dp"
android:layout_height="6dp"
android:layout_marginTop="12dp"
android:layout_marginRight="10dp"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:background="@drawable/downloads_badge"/>
</RelativeLayout>
<org.mozilla.vrbrowser.ui.views.UIButton
android:id="@+id/menuButton"
style="?attr/navigationBarButtonStyle"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:src="@drawable/ic_icon_hamburger_menu"
android:tooltipText="@string/hamburger_menu_tooltip"
app:privateMode="@{viewmodel.isPrivateSession}"/>
</LinearLayout>
</layout>