Revision control

Copy as Markdown

<?xml version="1.0" encoding="utf-8"?>
<data>
<variable
name="settingsmodel"
type="org.mozilla.vrbrowser.ui.viewmodel.SettingsViewModel" />
<import type="org.mozilla.vrbrowser.BuildConfig"/>
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/optionsLayout"
android:layout_width="@dimen/settings_width"
android:layout_height="@dimen/settings_height"
android:background="@drawable/settings_background"
android:orientation="vertical">
<ImageButton
android:id="@+id/backButton"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_centerVertical="true"
android:layout_marginStart="40dp"
android:layout_marginTop="50dp"
android:src="@drawable/ic_icon_back"
android:drawableTint="@color/fog_void_tint"
android:tint="@color/fog_void_tint"
android:background="@drawable/media_button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:id="@+id/settingsMasthead"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="23dp"
android:clickable="true"
android:contextClickable="false"
android:focusable="true"
android:gravity="center_horizontal"
android:orientation="vertical"
android:contentDescription="Firefox logo"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/ff_logo_settings"
android:layout_width="130dp"
android:layout_height="84dp"
android:layout_gravity="center"
android:clickable="false"
android:scaleType="fitCenter"
android:src="@drawable/ff_logo" />
<TextView
android:id="@+id/versionText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:clickable="false"
android:fontFamily="sans-serif"
android:gravity="center"
android:textColor="@color/white"
android:text="@string/app_name"
android:textSize="@dimen/text_big_size" />
<TextView
android:id="@+id/surveyLink"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="false"
android:fontFamily="sans-serif"
android:gravity="center"
android:text="@string/settings_send_your_feedback"
android:textColorHighlight="@android:color/transparent"
android:textColorLink="@color/azure"
android:textColor="@color/azure"
android:autoLink="all"
android:textStyle="bold"
android:textSize="@dimen/text_smaller_size" />
<TextView
android:id="@+id/buildText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="false"
android:fontFamily="sans-serif"
android:gravity="center"
android:text="@string/settings_version_developer"
android:textColor="@color/white"
android:textSize="@dimen/text_smaller_size" />
</LinearLayout>
<ScrollView
android:id="@+id/scrollView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginStart="108dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="118dp"
android:scrollbars="none"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/settingsMasthead">
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fadingEdgeLength="100dp"
android:requiresFadingEdge="horizontal"
android:scrollbars="none">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/first_row"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<org.mozilla.vrbrowser.ui.views.HoneycombButton
android:id="@+id/languageButton"
style="?attr/honeycombButtonStyle"
app:honeycombButtonIcon="@drawable/ic_settings_language"
app:honeycombButtonText="@string/settings_language"
app:honeycombButtonTextSize="@dimen/settings_main_button_text_width" />
<org.mozilla.vrbrowser.ui.views.HoneycombButton
android:id="@+id/displayButton"
style="?attr/honeycombButtonStyle"
app:honeycombButtonIcon="@drawable/ic_settings_display"
app:honeycombButtonText="@string/settings_display"
app:honeycombButtonTextSize="@dimen/settings_main_button_text_width" />
<org.mozilla.vrbrowser.ui.views.HoneycombButton
android:id="@+id/privacyButton"
style="?attr/honeycombButtonStyle"
app:honeycombButtonIcon="@drawable/ic_settings_privacypolicy"
app:honeycombButtonText="@string/settings_privacy_security"
app:honeycombButtonTextSize="@dimen/settings_main_button_text_width" />
<org.mozilla.vrbrowser.ui.views.HoneycombButton
android:id="@+id/developerOptionsButton"
style="?attr/honeycombButtonStyle"
app:honeycombButtonIcon="@drawable/ic_settings_developeroptions"
app:honeycombButtonText="@string/settings_developer_options"
app:honeycombButtonTextSize="@dimen/settings_main_button_text_width" />
<org.mozilla.vrbrowser.ui.views.HoneycombButton
android:id="@+id/fxaButton"
style="?attr/honeycombButtonStyle"
app:honeycombButtonIcon="@drawable/ic_icon_settings_account"
app:honeycombButtonText="@string/settings_fxa_account_sign_in"
app:honeycombButtonTextSize="@dimen/settings_main_button_text_width"
app:honeycombButtonIconHover="false"/>
</LinearLayout>
<LinearLayout
android:id="@+id/second_row"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/first_row"
android:layout_marginStart="65dp"
android:layout_marginTop="-28dp"
android:orientation="horizontal">
<org.mozilla.vrbrowser.ui.views.HoneycombButton
android:id="@+id/environmentButton"
style="?attr/honeycombButtonStyle"
app:honeycombButtonIcon="@drawable/ic_settings_environment"
app:honeycombButtonText="@string/developer_options_environments"
app:honeycombButtonTextSize="@dimen/settings_main_button_text_width" />
<org.mozilla.vrbrowser.ui.views.HoneycombButton
android:id="@+id/controllerOptionsButton"
style="?attr/honeycombButtonStyle"
app:honeycombButtonIcon="@drawable/ic_settings_controlleroptions"
app:honeycombButtonIconOculus3dof="@drawable/ic_settings_controlleroptions_oculusvr_3dof"
app:honeycombButtonIconOculus6dof="@drawable/ic_settings_controlleroptions_oculusvr_6dof"
app:honeycombButtonText="@string/settings_controller_options"
app:honeycombButtonTextSize="@dimen/settings_main_button_text_width" />
<org.mozilla.vrbrowser.ui.views.HoneycombButton
android:id="@+id/helpButton"
style="?attr/honeycombButtonStyle"
app:honeycombButtonIcon="@drawable/ic_settings_help"
app:honeycombButtonText="@string/settings_help"
app:honeycombButtonTextSize="@dimen/settings_main_button_text_width" />
<RelativeLayout
android:layout_width="136dp"
android:layout_height="136dp"
android:layout_marginEnd="-10dp">
<org.mozilla.vrbrowser.ui.views.HoneycombButton
android:id="@+id/whatsNewButton"
style="?attr/honeycombButtonStyle"
app:honeycombButtonIcon="@drawable/ic_whats_new"
app:honeycombButtonText="@string/settings_whats_new"
app:honeycombButtonTextSize="@dimen/settings_main_button_text_width" />
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="6dp"
android:layout_height="6dp"
android:layout_marginTop="48dp"
android:layout_marginEnd="58dp"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:background="@drawable/downloads_badge"
app:visibleGone="@{settingsmodel.isWhatsNewVisible}"/>
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
</HorizontalScrollView>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>