Revision control
Copy as Markdown
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/dialog_background"
android:paddingStart="30dp"
android:paddingEnd="30dp">
<org.mozilla.vrbrowser.ui.widgets.settings.SettingsHeader
android:id="@+id/header_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:helpVisibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:title="@string/developer_options_environments" />
<!-- ScrollView doesn't support fast scrollbar so we need to use a custom implementation -->
<org.mozilla.vrbrowser.ui.views.CustomScrollView
android:id="@+id/scrollbar"
style="@style/customScrollViewStyle"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="10dp"
android:paddingEnd="30dp"
app:layout_constraintBottom_toTopOf="@id/envOverrideSwitch"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/header_layout">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<org.mozilla.vrbrowser.ui.views.settings.ImageRadioGroupSetting
android:id="@+id/environmentRadio"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="0dp"
app:options="@array/developer_options_environments"
app:values="@array/developer_options_environments_values"
app:images="@array/developer_options_environments_images"/>
</LinearLayout>
</org.mozilla.vrbrowser.ui.views.CustomScrollView>
<org.mozilla.vrbrowser.ui.views.settings.SwitchSetting
android:id="@+id/envOverrideSwitch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/scrollbar"
app:layout_constraintBottom_toTopOf="@id/footer_layout"
app:description="@string/developer_options_env_override" />
<org.mozilla.vrbrowser.ui.widgets.settings.SettingsFooter
android:id="@+id/footer_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:description="@string/environment_options_reset"
app:buttonText="@string/developer_options_reset_button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>