@Override
@CallSuper
public void unbind() {
ListRoomsActivity target = this.target;
if (target == null) throw new IllegalStateException("Bindings already cleared.");
this.target = null;
target.recyclerView = null;
target.txtCurrentRooms = null;
target.viewLoading = null;
target.txtNoRoom = null;
view2131689610.setOnClickListener(null);
view2131689610 = null;
view2131689612.setOnClickListener(null);
view2131689612 = null;
}
java类android.support.annotation.CallSuper的实例源码
ListRoomsActivity_ViewBinding.java 文件源码
项目:PotRoom
阅读 36
收藏 0
点赞 0
评论 0
BaseContactSelectorFragment.java 文件源码
项目:Nird2
阅读 39
收藏 0
点赞 0
评论 0
@Override
@CallSuper
public View onCreateView(LayoutInflater inflater,
@Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
View contentView = inflater.inflate(R.layout.list, container, false);
list = (BriarRecyclerView) contentView.findViewById(R.id.list);
list.setLayoutManager(new LinearLayoutManager(getActivity()));
list.setEmptyText(getString(R.string.no_contacts_selector));
adapter = getAdapter(getContext(), this);
list.setAdapter(adapter);
// restore selected contacts if available
if (savedInstanceState != null) {
ArrayList<Integer> intContacts =
savedInstanceState.getIntegerArrayList(CONTACTS);
if (intContacts != null) {
selectedContacts = getContactsFromIntegers(intContacts);
}
}
return contentView;
}
BaseContactSelectorFragment.java 文件源码
项目:Nird2
阅读 40
收藏 0
点赞 0
评论 0
@Override
@CallSuper
public View onCreateView(LayoutInflater inflater,
@Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
View contentView = inflater.inflate(R.layout.list, container, false);
list = (BriarRecyclerView) contentView.findViewById(R.id.list);
list.setLayoutManager(new LinearLayoutManager(getActivity()));
list.setEmptyText(getString(R.string.no_contacts_selector));
adapter = getAdapter(getContext(), this);
list.setAdapter(adapter);
// restore selected contacts if available
if (savedInstanceState != null) {
ArrayList<Integer> intContacts =
savedInstanceState.getIntegerArrayList(CONTACTS);
if (intContacts != null) {
selectedContacts = getContactsFromIntegers(intContacts);
}
}
return contentView;
}
MatrixImageView.java 文件源码
项目:XphotoView
阅读 44
收藏 0
点赞 0
评论 0
@CallSuper
protected void onImageMatrixUpdated(Matrix imageMatrix) {
float angle = getImageAngle();
if (angle != imageAngle) {
imageAngle = angle;
onImageRotate(angle);
}
float scaleX = getImageScaleX();
float scaleY = getImageScaleY();
if (imageScaleX != scaleX || imageScaleY != scaleY) {
imageScaleX = scaleX;
imageScaleY = scaleY;
onImageScale(scaleX, scaleY);
}
float transX = getImageTranslateX();
float transY = getImageTranslateY();
if (imageTranslateX != transX || imageTranslateY != transY) {
imageTranslateX = transX;
imageTranslateY = transY;
onImageTranslate(transX, transY);
}
}
BaseThreadItemViewHolder.java 文件源码
项目:Nird2
阅读 40
收藏 0
点赞 0
评论 0
@CallSuper
public void bind(final I item, final ThreadItemListener<I> listener) {
textView.setText(StringUtils.trim(item.getText()));
author.setAuthor(item.getAuthor());
author.setDate(item.getTimestamp());
author.setAuthorStatus(item.getStatus());
if (item.isHighlighted()) {
layout.setActivated(true);
} else if (!item.isRead()) {
layout.setActivated(true);
animateFadeOut();
listener.onUnreadItemVisible(item);
} else {
layout.setActivated(false);
}
}
BaseFragment.java 文件源码
项目:Nird2
阅读 49
收藏 0
点赞 0
评论 0
@CallSuper
@Override
public void runOnUiThreadUnlessDestroyed(final Runnable r) {
final Activity activity = getActivity();
if (activity != null) {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
// Note that we don't have to check if the activity has
// been destroyed as the Fragment has not been detached yet
if (!isDetached() && !activity.isFinishing()) {
r.run();
}
}
});
}
}
RibActivity.java 文件源码
项目:RIBs
阅读 40
收藏 0
点赞 0
评论 0
@SuppressWarnings("CheckNullabilityTypes")
@Initializer
@CallSuper
@Override
protected void onCreate(@Nullable android.os.Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ViewGroup rootViewGroup = ((ViewGroup) findViewById(android.R.id.content));
lifecycleRelay.accept(ActivityLifecycleEvent.createOnCreateEvent(savedInstanceState));
router = createRouter(rootViewGroup);
Bundle wrappedBundle = null;
if (savedInstanceState != null) {
wrappedBundle = new Bundle(savedInstanceState);
}
router.dispatchAttach(wrappedBundle);
rootViewGroup.addView(router.getView());
}
DataBindingRecyclerAdapter.java 文件源码
项目:data-mediator
阅读 48
收藏 0
点赞 0
评论 0
/**
* called on bind item data.
*
* @param position the position (reject headers and footers)
* @param supplier the supplier, which is used to data-binding. this is from
* {@linkplain DataBindingRecyclerAdapter#onCreateParameterSupplier()}.
* @see DataBinding
* @see DataBinding#bind(Object, int, DataBinding.ParameterSupplier, PropertyInterceptor)
*/
@CallSuper
protected void onBindData(int position, @Nullable DataBinding.SimpleParameterSupplier supplier) {
DataBindingRecyclerAdapter<T> adapter = getAdapter();
if (adapter == null) {
return;
}
Binder<T> binder = adapter.mBinderMap.get(position);
if (binder != null) {
if(DEBUG) {
Logger.i(TAG, "onBindData", "unbindAll() >>> pos = " + position);
}
binder.unbindAll();
}
adapter.mBinderMap.put(position, mDataBinding.bindAndApply(
adapter.getItem(position), 0, supplier, getPropertyInterceptor()));
}
Request.java 文件源码
项目:RetrofitAppArchitecture
阅读 46
收藏 0
点赞 0
评论 0
@CallSuper
@Override
public void onCacheResponse(K k, boolean isDone) {
if (isCanceled()) {
EventBus.getDefault().post(new EventRequestCanceled(this));
LogUtils.d("请求被取消:" + mDataType);
return;
}
mResult = k;
setDone(isDone);
//通知ui缓存数据返回
EventBus.getDefault().post(new EventResponse(this, DataFrom.CACHE));
LogUtils.d("请求:");
LogUtils.d(mResult);
}
RibActivity.java 文件源码
项目:RIBs
阅读 38
收藏 0
点赞 0
评论 0
@Override
@CallSuper
protected void onResume() {
super.onResume();
lifecycleRelay.accept(ActivityLifecycleEvent.create(ActivityLifecycleEvent.Type.RESUME));
}
ThreadListControllerImpl.java 文件源码
项目:Nird2
阅读 35
收藏 0
点赞 0
评论 0
@CallSuper
@Override
public void eventOccurred(Event e) {
if (e instanceof GroupRemovedEvent) {
GroupRemovedEvent s = (GroupRemovedEvent) e;
if (s.getGroup().getId().equals(getGroupId())) {
LOG.info("Group removed");
listener.runOnUiThreadUnlessDestroyed(new Runnable() {
@Override
public void run() {
listener.onGroupRemoved();
}
});
}
}
}
ToastCallback.java 文件源码
项目:BittrexApi
阅读 39
收藏 0
点赞 0
评论 0
@CallSuper
@Override
public void onResponse(Request<T> request, T response) {
if (response == null) {
Toast.makeText(_context, "Error executing " + request.getClass().getSimpleName() + ": Empty response returned", Toast.LENGTH_LONG).show();
} else if (!response.success()) {
Toast.makeText(_context, "Error executing " + request.getClass().getSimpleName() + ": " + response.message(), Toast.LENGTH_LONG).show();
}
}
ComponentControllerFragment.java 文件源码
项目:ZeroKit-Android-SDK
阅读 41
收藏 0
点赞 0
评论 0
@Override
@CallSuper
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ComponentCache componentCache = getComponentCache();
componentDelegate.onCreate(componentCache, savedInstanceState, componentFactory);
}
BasePresenter.java 文件源码
项目:MVP-Architecture-Components
阅读 35
收藏 0
点赞 0
评论 0
@CallSuper
@Override
public void onPresenterDestroy() {
if (stateBundle != null && !stateBundle.isEmpty()) {
stateBundle.clear();
}
}
AbstractWeexActivity.java 文件源码
项目:weex-3d-map
阅读 37
收藏 0
点赞 0
评论 0
@Override
@CallSuper
public void onRenderSuccess(WXSDKInstance instance, int width, int height) {
if(mWxAnalyzerDelegate != null){
mWxAnalyzerDelegate.onWeexRenderSuccess(instance);
}
}
TiActivityPlugin.java 文件源码
项目:GitHub
阅读 53
收藏 0
点赞 0
评论 0
@CallSuper
@Override
public void onStop() {
mDelegate.onStop_beforeSuper();
super.onStop();
mDelegate.onStop_afterSuper();
}
EasyDialog.java 文件源码
项目:silly-android
阅读 37
收藏 0
点赞 0
评论 0
@Override
@CallSuper
public void dismiss() {
final View contentView = getContentView();
if (contentView != null && mKeyboardListener != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
contentView.getViewTreeObserver().removeOnGlobalLayoutListener(mKeyboardListener);
mKeyboardListener = null;
} else if (contentView != null && mKeyboardListener != null) {
// noinspection deprecation
contentView.getViewTreeObserver().removeGlobalOnLayoutListener(mKeyboardListener);
}
super.dismiss();
}
StopGuardian.java 文件源码
项目:PandwarfDefenderProject
阅读 39
收藏 0
点赞 0
评论 0
@CallSuper
@Override
public void run() {
super.run();
stopGuardian(new GollumCallbackGetBoolean() {
@Override
public void done(boolean stopSuccess) {
Log.d(TAG, "Pandwarf stopped");
toastShow("protection stopped");
cbThreadDone.done(stopSuccess);
}
});
}
BlockingLifecycleActivity.java 文件源码
项目:silly-android
阅读 47
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*/
@Override
@CallSuper
protected void onRestart() {
setStopInvoked(false);
setDestroyInvoked(false);
super.onRestart();
}
AbstractPlayer.java 文件源码
项目:NSMPlayer-Android
阅读 53
收藏 0
点赞 0
评论 0
@CallSuper
public void resetListeners() {
mOnPreparedListener = null;
mOnBufferingUpdateListener = null;
mOnCompletionListener = null;
mOnSeekCompleteListener = null;
mOnVideoSizeChangedListener = null;
mOnErrorListener = null;
mOnInfoListener = null;
}
WrapperActivity.java 文件源码
项目:Synapse
阅读 33
收藏 0
点赞 0
评论 0
@CallSuper
@Override
public boolean onCreateOptionsMenu(Menu menu) {
mScalpelMenu = menu.add(Menu.NONE, R.id.scalpel_menu, Menu.NONE, "Enable Scalpel");
return true;
}
JavaProjectFolder.java 文件源码
项目:javaide
阅读 36
收藏 0
点赞 0
评论 0
@CallSuper
public void mkdirs() {
if (!dirRoot.exists()) dirRoot.mkdirs();
if (!dirProject.exists()) dirProject.mkdirs();
if (!dirLibs.exists()) dirLibs.mkdirs();
if (!dirSrcMain.exists()) dirSrcMain.mkdirs();
if (!dirJava.exists()) dirJava.mkdirs();
if (!dirBuildClasses.exists()) dirBuildClasses.mkdirs();
if (!dirGenerated.exists()) dirGenerated.mkdirs();
if (!dirGeneratedSource.exists()) dirGeneratedSource.mkdirs();
}
BottomPopup.java 文件源码
项目:MainCalendar
阅读 36
收藏 0
点赞 0
评论 0
/**
* Show.
*/
@CallSuper
public void show() {
onShowPrepare();
popup.show();
LogUtils.debug("popup show");
}
NumberPicker.java 文件源码
项目:DateTimePicker
阅读 40
收藏 0
点赞 0
评论 0
@CallSuper
@Override
protected void drawableStateChanged() {
super.drawableStateChanged();
final Drawable selectionDivider = mSelectionDivider;
if (selectionDivider != null && selectionDivider.isStateful()
&& selectionDivider.setState(getDrawableState())) {
invalidateDrawable(selectionDivider);
}
}
LoaderFragment.java 文件源码
项目:ChocoPie
阅读 54
收藏 0
点赞 0
评论 0
@CallSuper
protected void loadViews() {
try {
YumLoader.parse(this);
} catch (YumLoader.ParsingException ignored) {}
}
BasePresenter.java 文件源码
项目:Mvp
阅读 35
收藏 0
点赞 0
评论 0
@CallSuper
@Override
public void onAttach(@NonNull IView view) {
try {
mView = (T) view;
} catch (ClassCastException e) {
mView = null;
}
}
UIIViewImpl.java 文件源码
项目:RLibrary
阅读 32
收藏 0
点赞 0
评论 0
@CallSuper
@Override
public void release() {
mOnUIViewListener = null;
//mActivity = null;
mChildILayout = null;
//mParentILayout = null;
//mILayout = null;
mILifecycleList.clear();
}
NestedGroup.java 文件源码
项目:genius-groupie
阅读 40
收藏 0
点赞 0
评论 0
/**
* Every item in the group still exists but the data in each has changed (e.g. should rebind).
*
* @param group
*/
@CallSuper
@Override
public void onChanged(Group group) {
if (parentDataObserver != null) {
parentDataObserver.onItemRangeChanged(this, getItemCountBeforeGroup(group), group.getItemCount());
}
}
ParsableActivity.java 文件源码
项目:silly-android
阅读 40
收藏 0
点赞 0
评论 0
/**
* {@inheritDoc}
*/
@Override
@CallSuper
protected void onCreate(@Nullable final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AnnotationParser.parseType(this, this);
if (getLayoutId() > 0) {
setContentView(getLayoutId());
}
}
MeasureSupporter.java 文件源码
项目:ChipsLayoutManager
阅读 49
收藏 0
点赞 0
评论 0
@Override
@CallSuper
public void onItemRangeRemoved(int positionStart, int itemCount) {
super.onItemRangeRemoved(positionStart, itemCount);
/** we detected removing event, so should process measuring manually
* @see <a href="http://stackoverflow.com/questions/40242011/custom-recyclerviews-layoutmanager-automeasuring-after-animation-finished-on-i">Stack Overflow issue</a>
*/
isAfterRemoving = true;
beforeRemovingWidth = autoMeasureWidth;
beforeRemovingHeight = autoMeasureHeight;
}