当前位置: 首页>>代码示例>>Java>>正文


Java CallSuper类代码示例

本文整理汇总了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;
}
 
开发者ID:BackPackerDz,项目名称:PotRoom,代码行数:18,代码来源:ListRoomsActivity_ViewBinding.java

示例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;
}
 
开发者ID:rafjordao,项目名称:Nird2,代码行数:25,代码来源:BaseContactSelectorFragment.java

示例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);
    }
}
 
开发者ID:xyzxqs,项目名称:XphotoView,代码行数:25,代码来源:MatrixImageView.java

示例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);
	}
}
 
开发者ID:rafjordao,项目名称:Nird2,代码行数:19,代码来源:BaseThreadItemViewHolder.java

示例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();
				}
			}
		});
	}
}
 
开发者ID:rafjordao,项目名称:Nird2,代码行数:18,代码来源:BaseFragment.java

示例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());
}
 
开发者ID:uber,项目名称:RIBs,代码行数:21,代码来源:RibActivity.java

示例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()));
}
 
开发者ID:LightSun,项目名称:data-mediator,代码行数:26,代码来源:DataBindingRecyclerAdapter.java

示例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);

}
 
开发者ID:jessie345,项目名称:RetrofitAppArchitecture,代码行数:22,代码来源:Request.java

示例9: onResume

import android.support.annotation.CallSuper; //导入依赖的package包/类
@Override
@CallSuper
protected void onResume() {
  super.onResume();

  lifecycleRelay.accept(ActivityLifecycleEvent.create(ActivityLifecycleEvent.Type.RESUME));
}
 
开发者ID:uber,项目名称:RIBs,代码行数:8,代码来源:RibActivity.java

示例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();
				}
			});
		}
	}
}
 
开发者ID:rafjordao,项目名称:Nird2,代码行数:17,代码来源:ThreadListControllerImpl.java

示例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();
    }
}
 
开发者ID:CoryCharlton,项目名称:BittrexApi,代码行数:10,代码来源:ToastCallback.java

示例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);
}
 
开发者ID:tresorit,项目名称:ZeroKit-Android-SDK,代码行数:8,代码来源:ComponentControllerFragment.java

示例13: onPresenterDestroy

import android.support.annotation.CallSuper; //导入依赖的package包/类
@CallSuper
@Override
public void onPresenterDestroy() {
    if (stateBundle != null && !stateBundle.isEmpty()) {
        stateBundle.clear();
    }
}
 
开发者ID:armcha,项目名称:MVP-Architecture-Components,代码行数:8,代码来源:BasePresenter.java

示例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);
  }
}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:8,代码来源:AbstractWeexActivity.java

示例15: onStop

import android.support.annotation.CallSuper; //导入依赖的package包/类
@CallSuper
@Override
public void onStop() {
    mDelegate.onStop_beforeSuper();
    super.onStop();
    mDelegate.onStop_afterSuper();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:TiActivityPlugin.java


注:本文中的android.support.annotation.CallSuper类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。