Search in sources :

Example 11 with GoodsInfo

use of com.litingzhe.justandroid.main.model.GoodsInfo in project JustAndroid by chinaltz.

the class ShopFragment method checkGroup.

@Override
public void checkGroup(int groupPosition, boolean isChecked) {
    StoreInfo group = groups.get(groupPosition);
    List<GoodsInfo> childs = children.get(group.getId());
    for (int i = 0; i < childs.size(); i++) {
        childs.get(i).setChoosed(isChecked);
    }
    if (isAllCheck())
        allChekbox.setChecked(true);
    else
        allChekbox.setChecked(false);
    selva.notifyDataSetChanged();
    calculate();
}
Also used : GoodsInfo(com.litingzhe.justandroid.main.model.GoodsInfo) StoreInfo(com.litingzhe.justandroid.main.model.StoreInfo)

Aggregations

GoodsInfo (com.litingzhe.justandroid.main.model.GoodsInfo)11 StoreInfo (com.litingzhe.justandroid.main.model.StoreInfo)8 TextView (android.widget.TextView)3 ArrayList (java.util.ArrayList)2 DialogInterface (android.content.DialogInterface)1 AlertDialog (android.support.v7.app.AlertDialog)1 SpannableString (android.text.SpannableString)1 StrikethroughSpan (android.text.style.StrikethroughSpan)1 View (android.view.View)1 OnClickListener (android.view.View.OnClickListener)1 CheckBox (android.widget.CheckBox)1 ImageView (android.widget.ImageView)1 BindView (butterknife.BindView)1 Random (java.util.Random)1