Revision control
Copy as Markdown
<?xml version="1.0" encoding="utf-8"?>
<data>
<variable
name="title"
type="java.lang.String" />
<variable
name="description"
type="java.lang.String" />
<variable
name="helpVisibility"
type="Integer" />
<variable
name="backClickListener"
type="android.view.View.OnClickListener" />
<variable
name="helpClickListener"
type="android.view.View.OnClickListener" />
</data>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dp"
android:paddingBottom="10dp">
<org.mozilla.vrbrowser.ui.views.UIButton
android:id="@+id/backButton"
style="?attr/navigationBarButtonStyle"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentStart="true"
android:onClick="@{(view) -> backClickListener.onClick(view)}"
android:src="@drawable/ic_icon_back"
android:tint="@color/midnight" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_toStartOf="@id/helpButton"
android:layout_toEndOf="@id/backButton"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/display_language_title"
style="@style/settingsHeaderText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@{title}"
tools:text="Setting title" />
<TextView
android:id="@+id/display_language_description"
style="@style/settingsDescriptionText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@{description}"
tools:text="Setting description" />
</LinearLayout>
<org.mozilla.vrbrowser.ui.views.UIButton
android:id="@+id/helpButton"
style="?attr/navigationBarButtonStyle"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentEnd="true"
android:onClick="@{(view) -> helpClickListener.onClick(view)}"
android:src="@drawable/ic_icon_settings_help"
android:tint="@color/midnight"
android:visibility="@{safeUnbox(helpVisibility)}" />
</RelativeLayout>
<View
android:id="@+id/separatorTop"
style="?attr/separatorStyle"
android:layout_width="match_parent"/>
</LinearLayout>
</layout>