package ca.antonious.viewcelladapter.viewcells.builtins;

import android.support.annotation.LayoutRes;
import android.view.View;

import java.security.SecureRandom;

import ca.antonious.viewcelladapter.internal.Function;
import ca.antonious.viewcelladapter.viewcells.AbstractViewCell;
import ca.antonious.viewcelladapter.viewcells.BaseViewHolder;

/**
 * Created by George on 2017-01-01.
 */

public class StaticViewCell extends AbstractViewCell<BaseViewHolder> {
    private int layoutId;
    private int itemId;

    public StaticViewCell(@LayoutRes int layoutId) {
        this(layoutId, new SecureRandom().nextInt());
    }

    public StaticViewCell(@LayoutRes int layoutId, int itemId) {
        this.layoutId = layoutId;
        this.itemId = itemId;
    }

    @Override
    public int getLayoutId() {
        return layoutId;
    }

    @Override
    public int getItemId() {
        return itemId;
    }

    @Override
    public BaseViewHolder createViewHolder(View view) {
        return new BaseViewHolder(view);
    }

    @Override
    public void bindViewCell(BaseViewHolder viewHolder) {

    }
}

@@ -139,86 +139,21 @@
 ava.
-security.SecureRandom;%0A%0Aimport ca.antonious.viewcelladapter.internal.Function;
+util.Random;%0A
 %0Aimp
@@ -527,21 +527,32 @@
 new 
-Secure
 Random(
+System.nanoTime()
 ).ne
@@ -696,32 +696,114 @@
  itemId;%0A    %7D%0A%0A
+    @Override%0A    public int getViewType() %7B%0A        return getLayoutId();%0A    %7D%0A%0A
     @Override%0A  

Return viewType based on layout id in StaticViewCell