Skip to content

Instantly share code, notes, and snippets.

@Draketheb4dass
Created July 28, 2021 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Draketheb4dass/b8713a076b5c6b9dfed02ff9fa975b08 to your computer and use it in GitHub Desktop.
Save Draketheb4dass/b8713a076b5c6b9dfed02ff9fa975b08 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<data>
<variable
name="toppings"
type="com.jephtecolin.model.Topping[]" />
<variable
name="listener"
type="com.jephtecolin.kwii.ui.custom.OnCheckedChangeListener" />
<variable
name="viewModel"
type="com.jephtecolin.kwii.ui.consumable_detail.ConsumableDetailViewModel" />
</data>
<com.jephtecolin.kwii.ui.custom.CheckBoxGroup
android:id="@+id/gp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:totalPrice="@={viewModel.totalCost}"
setOnCheckedChangeListener="@{listener}"
setItems="@{toppings}"/>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment