Revision control

Copy as Markdown

<?xml version="1.0" encoding="utf-8"?>
<data>
<variable
name="delegate"
type="org.mozilla.vrbrowser.ui.delegates.LibraryNavigationDelegate" />
<variable
name="canGoBack"
type="boolean" />
</data>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/buttons"
android:layout_width="70dp"
android:layout_height="match_parent"
android:background="@drawable/library_background"
android:layout_alignParentStart="true">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<org.mozilla.vrbrowser.ui.views.UIButton
style="@style/libraryButtonStartTheme"
android:src="@drawable/ic_icon_bookmark"
android:id="@+id/bookmarks"
android:onClick="@{(view) -> delegate != null ? delegate.onButtonClick(view) : void}"/>
<org.mozilla.vrbrowser.ui.views.UIButton
style="@style/libraryButtonMiddleTheme"
android:src="@drawable/ic_icon_history"
android:id="@+id/history"
android:onClick="@{(view) -> delegate != null ? delegate.onButtonClick(view) : void}"/>
<org.mozilla.vrbrowser.ui.views.UIButton
style="@style/libraryButtonMiddleTheme"
android:src="@drawable/ic_icon_downloads"
android:id="@+id/downloads"
android:onClick="@{(view) -> delegate != null ? delegate.onButtonClick(view) : void}"/>
<org.mozilla.vrbrowser.ui.views.UIButton
style="@style/libraryButtonMiddleTheme"
android:src="@drawable/ic_icon_addons"
android:id="@+id/addons"
android:onClick="@{(view) -> delegate != null ? delegate.onButtonClick(view) : void}"/>
</LinearLayout>
</FrameLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_toEndOf="@id/buttons"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:padding="20dp"
android:background="@drawable/library_panel_background">
<RelativeLayout
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_alignParentTop="true">
<org.mozilla.vrbrowser.ui.views.UIButton
android:id="@+id/backButton"
style="?attr/navigationBarButtonStyle"
android:layout_alignParentStart="true"
android:src="@drawable/ic_icon_back"
android:tint="@color/midnight"
android:onClick="@{(view) -> delegate != null ? delegate.onBack(view) : void}"
visibleGone="@{canGoBack}" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:gravity="center_horizontal"
android:textAlignment="gravity"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:textColor="@color/smoke"
android:textSize="@dimen/text_biggest_size"
android:textStyle="bold" />
<org.mozilla.vrbrowser.ui.views.UIButton
android:id="@+id/closeButton"
style="?attr/navigationBarButtonStyle"
android:layout_alignParentEnd="true"
android:src="@drawable/ic_icon_exit"
android:tint="@color/midnight"
android:onClick="@{(view) -> delegate != null ? delegate.onClose(view) : void}" />
</RelativeLayout>
<FrameLayout
android:id="@+id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/header"
android:layout_alignParentBottom="true" />
</RelativeLayout>
</RelativeLayout>
</FrameLayout>
</layout>