Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:cardCornerRadius="0dp"
android:layout_marginTop="5dp"
android:foreground="?android:selectableItemBackground"
android:clickable="true"
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
app:cardCornerRadius="0dp"
android:layout_marginTop="5dp"
android:foreground="?android:selectableItemBackground"
android:clickable="true"
public class DiscountViewHolder extends ChildViewHolder {
@BindView(R.id.discount_name)
TextView mDiscountName;
@BindView(R.id.discount_desc)
TextView mDiscountDesc;
@BindView(R.id.discount_value)
TextView mDiscountValue;
Discount mDiscount;
View mDiscountItemView;