package com.chaos.reactive.ui.fragments;

import com.chaos.reactive.R;
import com.chaos.reactive.presenters.DefaultFragmentPresenter;
import com.chaos.reactive.presenters.FragmentPresenter;

public class DefaultFragment extends BaseFragment {

    @Override
    protected FragmentPresenter createPresenter() {
        return new DefaultFragmentPresenter();
    }

    @Override
    protected int onCreateViewId() {
        return R.layout.fragment_empty;
    }
}

@@ -35,16 +35,211 @@
 ments;%0A%0A
+import android.graphics.Color;%0Aimport android.os.Bundle;%0Aimport android.support.annotation.Nullable;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0A%0A
 import c
@@ -379,16 +379,42 @@
 enter;%0A%0A
+import java.util.Random;%0A%0A
 public c
@@ -456,16 +456,709 @@
 agment %7B
+%0A    private static final int MAX_9_BYTE = 256;%0A%0A    @Nullable%0A    @Override%0A    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) %7B%0A        View view = super.onCreateView(inflater, container, savedInstanceState);%0A%0A        if (view != null) %7B%0A            view.setBackgroundColor(getRandomColor());%0A        %7D%0A%0A        return view;%0A    %7D%0A%0A    private int getRandomColor() %7B%0A        return getRandomColor(new Random());%0A    %7D%0A%0A    private int getRandomColor(Random random) %7B%0A        return Color.rgb(%0A                random.nextInt(MAX_9_BYTE),%0A                random.nextInt(MAX_9_BYTE),%0A                random.nextInt(MAX_9_BYTE)%0A        );%0A    %7D
 %0A%0A    @O

Set background color random