
/**
 * 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.View;
import android.view.ViewGroup;

import x7c1.linen.R;
import x7c1.linen.glue.res.layout.SettingScheduleLayout;
import x7c1.wheat.ancient.resource.ViewHolderProvider;
import x7c1.wheat.ancient.resource.ViewHolderProviderFactory;

public class SettingScheduleLayoutProvider implements ViewHolderProvider<SettingScheduleLayout> {

    private final LayoutInflater inflater;

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

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

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

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

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

    public static ViewHolderProviderFactory<SettingScheduleLayout> factory(){
        return new ViewHolderProviderFactory<SettingScheduleLayout>() {
            @Override
            public ViewHolderProvider<SettingScheduleLayout> create(LayoutInflater inflater){
                return new SettingScheduleLayoutProvider(inflater);
            }
            @Override
            public ViewHolderProvider<SettingScheduleLayout> create(Context context){
                return new SettingScheduleLayoutProvider(context);
            }
            @Override
            public SettingScheduleLayout createViewHolder(View view){
                return new SettingScheduleLayout(
                    view,
                    (android.support.v7.widget.Toolbar) view.findViewById(R.id.setting_schedule_layout__toolbar),
                    (android.support.v7.widget.RecyclerView) view.findViewById(R.id.setting_schedule_layout__schedules)
                );
            }
        };
    }
}

@@ -242,16 +242,21 @@
 iew.View
+Group
 ;%0Aimport
@@ -277,23 +277,17 @@
 View
-Group;%0A
+;
 %0Aimport 
 x7c1
@@ -286,77 +286,88 @@
 ort 
-x7c1.linen.R;%0Aimport x7c1.linen.glue.res.layout.SettingScheduleLayout
+android.support.v7.widget.Toolbar;%0Aimport android.support.v7.widget.RecyclerView
 ;%0Aim
@@ -480,16 +480,94 @@
 Factory;
+%0Aimport x7c1.linen.R;%0Aimport x7c1.linen.glue.res.layout.SettingScheduleLayout;
 %0A%0Apublic
@@ -1388,32 +1388,134 @@
 r(view);%0A    %7D%0A%0A
+    @Override%0A    public SettingScheduleLayout inflate()%7B%0A        return inflate(null, false);%0A    %7D%0A%0A
     public stati

add inflate() to SettingScheduleLayoutProvider