Revision control

Copy as Markdown

<?xml version="1.0" encoding="utf-8"?>
<data>
<variable
name="isBlocked"
type="Boolean" />
<variable
name="onText"
type="String" />
<variable
name="offText"
type="String" />
</data>
<LinearLayout
android:layout_width="@dimen/quick_permission_width"
android:layout_height="@dimen/quick_permission_height"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/selectionMenuContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="15dp"
android:background="@drawable/context_menu_background">
<org.mozilla.vrbrowser.ui.views.LinkTextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_alignParentTop="true"
android:layout_above="@id/enableSwitch"
android:gravity="center"
android:layout_marginTop="25dp"
android:paddingStart="20dp"
android:paddingEnd="20dp"
android:text="@string/webxr_permission_dialog_message"
android:textStyle="bold"
android:textColor="@color/fog"
android:textSize="@dimen/text_bigger_size" />
<Switch
android:id="@+id/enableSwitch"
style="@style/settingsSwitch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:layout_marginBottom="25dp"
android:scaleType="fitCenter"
android:switchPadding="5dp"
android:scaleX="1.5"
android:scaleY="1.5"
android:text="@{isBlocked ? offText : onText}" />
</RelativeLayout>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="-16dp">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="30dp"
android:layout_height="15dp"
android:backgroundTint="@color/asphalt"
android:background="@drawable/triangle"/>
</FrameLayout>
</LinearLayout>
</layout>