Revision control
Copy as Markdown
<data>
<variable
name="item"
type="org.mozilla.vrbrowser.ui.adapters.HamburgerMenuAdapter.MenuItem" />
</data>
<LinearLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="@dimen/context_menu_row_height"
android:background="@drawable/context_menu_item_background"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:focusable="true"
android:clickable="true"
android:orientation="horizontal">
<ImageView
android:id="@+id/listItemImage"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_gravity="center"
android:tint="@color/fog"
android:scaleType="fitCenter"
android:duplicateParentState="true"
android:focusable="false"
app:drawable="@{item.icon}"/>
<TextView
android:id="@+id/listItemText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="18sp"
android:textStyle="bold"
android:shadowColor="@color/text_shadow"
android:gravity="center_vertical"
android:textColor="@color/fog"
android:layout_marginStart="15dp"
android:singleLine="true"
android:duplicateParentState="true"
android:focusable="false"
android:text="@{item.title}"/>
</LinearLayout>
</layout>