//
// DO NOT EDIT THIS FILE, IT HAS BEEN GENERATED USING AndroidAnnotations 3.1.
//
package com.tiger.quicknews.view;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import com.tiger.quicknews.R.id;
import com.tiger.quicknews.R.layout;
import org.androidannotations.api.view.HasViews;
import org.androidannotations.api.view.OnViewChangedListener;
import org.androidannotations.api.view.OnViewChangedNotifier;
/**
* We use @SuppressWarning here because our java code
* generator doesn't know that there is no need
* to import OnXXXListeners from View as we already
* are in a View.
*
*/
@SuppressWarnings("unused")
public final class LeftView_
extends LeftView
implements HasViews, OnViewChangedListener
{
private boolean alreadyInflated_ = false;
private final OnViewChangedNotifier onViewChangedNotifier_ = new OnViewChangedNotifier();
public LeftView_(Context context) {
super(context);
init_();
}
public static LeftView build(Context context) {
LeftView_ instance = new LeftView_(context);
instance.onFinishInflate();
return instance;
}
/**
* The mAlreadyInflated_ hack is needed because of an Android bug
* which leads to infinite calls of onFinishInflate()
* when inflating a layout with a parent and using
* the <merge /> tag.
*
*/
@Override
public void onFinishInflate() {
if (!alreadyInflated_) {
alreadyInflated_ = true;
inflate(getContext(), layout.activity_left, this);
onViewChangedNotifier_.notifyViewChanged(this);
}
super.onFinishInflate();
}
private void init_() {
OnViewChangedNotifier previousNotifier = OnViewChangedNotifier.replaceNotifier(onViewChangedNotifier_);
OnViewChangedNotifier.registerOnViewChangedListener(this);
OnViewChangedNotifier.replaceNotifier(previousNotifier);
}
@Override
public void onViewChanged(HasViews hasViews) {
{
View view = hasViews.findViewById(id.ties);
if (view!= null) {
view.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
LeftView_.this.enterMessage(view);
}
}
);
}
}
{
View view = hasViews.findViewById(id.tianqi);
if (view!= null) {
view.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
LeftView_.this.enterTianQi(view);
}
}
);
}
}
{
View view = hasViews.findViewById(id.video);
if (view!= null) {
view.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
LeftView_.this.enterVideo(view);
}
}
);
}
}
{
View view = hasViews.findViewById(id.pics);
if (view!= null) {
view.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
LeftView_.this.enterPics(view);
}
}
);
}
}
{
View view = hasViews.findViewById(id.more);
if (view!= null) {
view.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
LeftView_.this.enterMore(view);
}
}
);
}
}
}
}