// // DO NOT EDIT THIS FILE, IT HAS BEEN GENERATED USING AndroidAnnotations 3.0.1. // package com.jayqqaa12.reader.ui.adapter.itemview; import android.content.Context; import android.widget.ImageView; import android.widget.TextView; import com.jayqqaa12.abase.core.Abus_; import com.jayqqaa12.reader.R.id; import com.jayqqaa12.reader.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 FileItemView_ extends FileItemView implements HasViews, OnViewChangedListener { private boolean alreadyInflated_ = false; private final OnViewChangedNotifier onViewChangedNotifier_ = new OnViewChangedNotifier(); public FileItemView_(Context context) { super(context); init_(); } public static FileItemView build(Context context) { FileItemView_ instance = new FileItemView_(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.lv_file, this); onViewChangedNotifier_.notifyViewChanged(this); } super.onFinishInflate(); } private void init_() { OnViewChangedNotifier previousNotifier = OnViewChangedNotifier.replaceNotifier(onViewChangedNotifier_); OnViewChangedNotifier.registerOnViewChangedListener(this); bus = Abus_.getInstance_(getContext()); OnViewChangedNotifier.replaceNotifier(previousNotifier); } @Override public void onViewChanged(HasViews hasViews) { lv_tv = ((TextView) hasViews.findViewById(id.lv_tv)); lv_iv = ((ImageView) hasViews.findViewById(id.lv_iv)); } }