@@ -0,0 +1,1677 @@
+package dev.blunch.blunch.view;%0A%0Aimport android.content.Context;%0Aimport android.view.Gravity;%0Aimport android.view.ViewGroup;%0Aimport android.widget.CheckBox;%0Aimport android.widget.LinearLayout;%0Aimport android.widget.TextView;%0A%0A/**%0A * Select Payment Dish Layout Class%0A * @author albert%0A */%0Apublic class SelectPaymentDishLayout extends LinearLayout %7B%0A%0A    CheckBox checkBox;%0A    TextView dishNameText;%0A    TextView dishPriceText;%0A%0A    @SuppressWarnings(%22all%22)%0A    public SelectPaymentDishLayout(Context context, String dishName, Integer price) %7B%0A        super(context);%0A%0A        setOrientation(VERTICAL);%0A        setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));%0A        setGravity(Gravity.CENTER);%0A%0A        checkBox = new CheckBox(context);%0A        LinearLayout.LayoutParams checkLayout = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);%0A        addView(checkBox, checkLayout);%0A%0A        dishNameText = new TextView(context);%0A        dishNameText.setText(dishName);%0A        LinearLayout.LayoutParams dishTextLayout = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);%0A        addView(dishNameText, dishTextLayout);%0A%0A        dishPriceText = new TextView(context);%0A        dishPriceText.setText(price + %22 %E2%82%AC%22);%0A        LinearLayout.LayoutParams priceTextLayout = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);%0A        addView(dishPriceText, priceTextLayout);%0A%0A    %7D%0A%0A    public boolean isChecked() %7B%0A        return checkBox.isChecked();%0A    %7D%0A%0A%7D%0A

add layout class