
/**
 * This file is automatically generated by wheat-build.
 * Do not modify this file -- YOUR CHANGES WILL BE ERASED!
 */

package x7c1.linen.res.layout;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.view.View;
import android.widget.CheckBox;
import android.widget.TextView;
import x7c1.wheat.ancient.resource.ViewHolderProvider;
import x7c1.wheat.ancient.resource.ViewHolderProviderFactory;
import x7c1.linen.R;
import x7c1.linen.glue.res.layout.SettingSourceAttachRowItem;

public class SettingSourceAttachRowItemProvider implements ViewHolderProvider<SettingSourceAttachRowItem> {

    private final LayoutInflater inflater;

    public SettingSourceAttachRowItemProvider(Context context){
        this.inflater = LayoutInflater.from(context);
    }

    public SettingSourceAttachRowItemProvider(LayoutInflater inflater){
        this.inflater = inflater;
    }

    @Override
    public int layoutId(){
        return R.layout.setting_source_attach_row__item;
    }

    @Override
    public SettingSourceAttachRowItem inflateOn(ViewGroup parent){
        return inflate(parent, false);
    }

    @Override
    public SettingSourceAttachRowItem inflate(ViewGroup parent, boolean attachToRoot){
        View view = inflater.inflate(R.layout.setting_source_attach_row__item, parent, attachToRoot);
        return factory().createViewHolder(view);
    }

    public static ViewHolderProviderFactory<SettingSourceAttachRowItem> factory(){
        return new ViewHolderProviderFactory<SettingSourceAttachRowItem>() {
            @Override
            public ViewHolderProvider<SettingSourceAttachRowItem> create(LayoutInflater inflater){
                return new SettingSourceAttachRowItemProvider(inflater);
            }
            @Override
            public ViewHolderProvider<SettingSourceAttachRowItem> create(Context context){
                return new SettingSourceAttachRowItemProvider(context);
            }
            @Override
            public SettingSourceAttachRowItem createViewHolder(View view){
                return new SettingSourceAttachRowItem(
                    view,
                    (CheckBox) view.findViewById(R.id.setting_source_attach_row__item__checked),
                    (TextView) view.findViewById(R.id.setting_source_attach_row__item__label)
                );
            }
        };
    }
}

@@ -1414,32 +1414,139 @@
 r(view);%0A    %7D%0A%0A
+    @Override%0A    public SettingSourceAttachRowItem inflate()%7B%0A        return inflate(null, false);%0A    %7D%0A%0A
     public stati

add inflate method