//
// DO NOT EDIT THIS FILE, IT HAS BEEN GENERATED USING AndroidAnnotations 3.1.
//
package com.tiger.quicknews.activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.RadioButton;
import com.tiger.quicknews.R.id;
import com.tiger.quicknews.R.layout;
import org.androidannotations.api.SdkVersionHelper;
import org.androidannotations.api.builder.ActivityIntentBuilder;
import org.androidannotations.api.view.HasViews;
import org.androidannotations.api.view.OnViewChangedListener;
import org.androidannotations.api.view.OnViewChangedNotifier;
public final class TuPianActivity_
extends TuPianActivity
implements HasViews, OnViewChangedListener
{
private final OnViewChangedNotifier onViewChangedNotifier_ = new OnViewChangedNotifier();
@Override
public void onCreate(Bundle savedInstanceState) {
OnViewChangedNotifier previousNotifier = OnViewChangedNotifier.replaceNotifier(onViewChangedNotifier_);
init_(savedInstanceState);
super.onCreate(savedInstanceState);
OnViewChangedNotifier.replaceNotifier(previousNotifier);
setContentView(layout.activity_tupian);
}
private void init_(Bundle savedInstanceState) {
OnViewChangedNotifier.registerOnViewChangedListener(this);
init();
}
@Override
public void setContentView(int layoutResID) {
super.setContentView(layoutResID);
onViewChangedNotifier_.notifyViewChanged(this);
}
@Override
public void setContentView(View view, LayoutParams params) {
super.setContentView(view, params);
onViewChangedNotifier_.notifyViewChanged(this);
}
@Override
public void setContentView(View view) {
super.setContentView(view);
onViewChangedNotifier_.notifyViewChanged(this);
}
public static TuPianActivity_.IntentBuilder_ intent(Context context) {
return new TuPianActivity_.IntentBuilder_(context);
}
public static TuPianActivity_.IntentBuilder_ intent(android.app.Fragment fragment) {
return new TuPianActivity_.IntentBuilder_(fragment);
}
public static TuPianActivity_.IntentBuilder_ intent(android.support.v4.app.Fragment supportFragment) {
return new TuPianActivity_.IntentBuilder_(supportFragment);
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (((SdkVersionHelper.getSdkInt()< 5)&&(keyCode == KeyEvent.KEYCODE_BACK))&&(event.getRepeatCount() == 0)) {
onBackPressed();
}
return super.onKeyDown(keyCode, event);
}
@Override
public void onViewChanged(HasViews hasViews) {
mTiTan = ((RadioButton) hasViews.findViewById(id.titan));
mMeiTu = ((RadioButton) hasViews.findViewById(id.meitu));
mMingXing = ((RadioButton) hasViews.findViewById(id.mingxing));
mReDian = ((RadioButton) hasViews.findViewById(id.redian));
mDuJia = ((RadioButton) hasViews.findViewById(id.dujia));
mViewPager = ((ViewPager) hasViews.findViewById(id.vPager));
initView();
}
public static class IntentBuilder_
extends ActivityIntentBuilder<TuPianActivity_.IntentBuilder_>
{
private android.app.Fragment fragment_;
private android.support.v4.app.Fragment fragmentSupport_;
public IntentBuilder_(Context context) {
super(context, TuPianActivity_.class);
}
public IntentBuilder_(android.app.Fragment fragment) {
super(fragment.getActivity(), TuPianActivity_.class);
fragment_ = fragment;
}
public IntentBuilder_(android.support.v4.app.Fragment fragment) {
super(fragment.getActivity(), TuPianActivity_.class);
fragmentSupport_ = fragment;
}
@Override
public void startForResult(int requestCode) {
if (fragmentSupport_!= null) {
fragmentSupport_.startActivityForResult(intent, requestCode);
} else {
if (fragment_!= null) {
fragment_.startActivityForResult(intent, requestCode);
} else {
super.startForResult(requestCode);
}
}
}
}
}