本文整理汇总了Java中android.support.annotation.CallSuper类的典型用法代码示例。如果您正苦于以下问题:Java CallSuper类的具体用法?Java CallSuper怎么用?Java CallSuper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CallSuper类属于android.support.annotation包,在下文中一共展示了CallSuper类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: unbind
import android.support.annotation.CallSuper; //导入依赖的package包/类
@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;
}
示例2: onCreateView
import android.support.annotation.CallSuper; //导入依赖的package包/类
@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;
}
示例3: onImageMatrixUpdated
import android.support.annotation.CallSuper; //导入依赖的package包/类
@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);
}
}
示例4: bind
import android.support.annotation.CallSuper; //导入依赖的package包/类
@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);
}
}
示例5: runOnUiThreadUnlessDestroyed
import android.support.annotation.CallSuper; //导入依赖的package包/类
@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();
}
}
});
}
}
示例6: onCreate
import android.support.annotation.CallSuper; //导入依赖的package包/类
@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());
}
示例7: onBindData
import android.support.annotation.CallSuper; //导入依赖的package包/类
/**
* 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()));
}
示例8: onCacheResponse
import android.support.annotation.CallSuper; //导入依赖的package包/类
@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);
}
示例9: onResume
import android.support.annotation.CallSuper; //导入依赖的package包/类
@Override
@CallSuper
protected void onResume() {
super.onResume();
lifecycleRelay.accept(ActivityLifecycleEvent.create(ActivityLifecycleEvent.Type.RESUME));
}
示例10: eventOccurred
import android.support.annotation.CallSuper; //导入依赖的package包/类
@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();
}
});
}
}
}
示例11: onResponse
import android.support.annotation.CallSuper; //导入依赖的package包/类
@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();
}
}
示例12: onCreate
import android.support.annotation.CallSuper; //导入依赖的package包/类
@Override
@CallSuper
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ComponentCache componentCache = getComponentCache();
componentDelegate.onCreate(componentCache, savedInstanceState, componentFactory);
}
示例13: onPresenterDestroy
import android.support.annotation.CallSuper; //导入依赖的package包/类
@CallSuper
@Override
public void onPresenterDestroy() {
if (stateBundle != null && !stateBundle.isEmpty()) {
stateBundle.clear();
}
}
示例14: onRenderSuccess
import android.support.annotation.CallSuper; //导入依赖的package包/类
@Override
@CallSuper
public void onRenderSuccess(WXSDKInstance instance, int width, int height) {
if(mWxAnalyzerDelegate != null){
mWxAnalyzerDelegate.onWeexRenderSuccess(instance);
}
}
示例15: onStop
import android.support.annotation.CallSuper; //导入依赖的package包/类
@CallSuper
@Override
public void onStop() {
mDelegate.onStop_beforeSuper();
super.onStop();
mDelegate.onStop_afterSuper();
}