package com.joker.fourfun.ui;

import android.os.Bundle;
import android.widget.FrameLayout;
import android.widget.RadioButton;

import com.joker.fourfun.R;
import com.joker.fourfun.base.BaseFragmentActivity;

import butterknife.BindView;
import me.yokeyword.fragmentation.SupportFragment;

public class MainActivity extends BaseFragmentActivity {
    @BindView(R.id.fl_content)
    FrameLayout mFlContent;
    private RadioButton mRbPicinclude;
    private RadioButton mRbArticleinclude;
    private RadioButton mRbMusicinclude;
    private RadioButton mRbMovieinclude;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mRbPicinclude = (RadioButton) findViewById(R.id.rb_pic);
        mRbArticleinclude = (RadioButton) findViewById(R.id.rb_article);
        mRbMusicinclude = (RadioButton) findViewById(R.id.rb_music);
        mRbMovieinclude = (RadioButton) findViewById(R.id.rb_movie);
    }

    @Override
    protected SupportFragment getToFragment() {
        return null;
    }

    @Override
    protected int getContainerId() {
        return R.id.fl_content;
    }
}

@@ -43,17 +43,83 @@
 oid.
-os.Bundle
+content.pm.ActivityInfo;%0Aimport android.os.Bundle;%0Aimport android.view.View
 ;%0Aim
@@ -245,32 +245,35 @@
 un.base.Base
+Mvp
 Fragment
 Activity;%0A%0Ai
@@ -264,46 +264,152 @@
 ment
-Activity;%0A%0Aimport butterknife.BindView
+;%0Aimport com.joker.fourfun.ui.fragment.PictureFragment;%0A%0Aimport butterknife.BindView;%0Aimport butterknife.ButterKnife;%0Aimport butterknife.OnClick
 ;%0Aim
@@ -447,24 +447,24 @@
 .Support
-Fragment
+Activity
 ;%0A%0Apubli
@@ -496,19 +496,14 @@
 nds 
-BaseFragmen
+Suppor
 tAct
@@ -577,138 +577,201 @@
     
-private RadioButton mRbPicinclude;%0A    private RadioButton mRbArticleinclude;%0A    private RadioButton mRbMusicinclude;%0A    private
+@BindView(R.id.rb_pic)%0A    RadioButton mRbPic;%0A    @BindView(R.id.rb_article)%0A    RadioButton mRbArticle;%0A    @BindView(R.id.rb_music)%0A    RadioButton mRbMusic;%0A    @BindView(R.id.rb_movie)%0A   
  Rad
@@ -787,23 +787,16 @@
 mRbMovie
-include
 ;%0A%0A    @
@@ -965,296 +965,435 @@
     
-mRbPicinclude = (RadioButton) findViewById(R.id.rb_pic);%0A        mRbArticleinclude = (RadioButton) findViewById(R.id.rb_article);%0A        mRbMusicinclude = (RadioButton) findViewById(R.id.rb_music);%0A        mRbMovieinclude = (RadioButton) findViewById(R.id.rb_movie
+setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);%0A        ButterKnife.bind(this);%0A        BaseMvpFragment%5B%5D mFragments = new BaseMvpFragment%5B2%5D;%0A        if (savedInstanceState == null) %7B%0A            mFragments%5B0%5D = new PictureFragment();%0A            loadMultipleRootFragment(getContainerId(), 0, mFragments%5B0%5D);%0A        %7D else %7B%0A            mFragments%5B0%5D = findFragment(PictureFragment.class
 );%0A    
+ 
+   
 %7D
-%0A
 %0A    
-@Override
+%7D%0A
 %0A   
@@ -1407,118 +1407,211 @@
 ted 
-SupportFragment getToFragment() %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    protected int getContainer
+int getContainerId() %7B%0A        return R.id.fl_content;%0A    %7D%0A%0A    @OnClick(%7BR.id.rb_pic, R.id.rb_article, R.id.rb_music, R.id.rb_movie%7D)%0A    public void onClick(View view) %7B%0A        switch (view.get
 Id()
+)
  %7B%0A 
@@ -1617,39 +1617,237 @@
         
-return R.id.fl_content;
+    case R.id.rb_pic:%0A                break;%0A            case R.id.rb_article:%0A                break;%0A            case R.id.rb_music:%0A                break;%0A            case R.id.rb_movie:%0A                break;%0A        %7D
 %0A    %7D%0A%7D

change parent Activity