本文整理了Java中android.widget.TextView.removeCallbacks()
方法的一些代码示例,展示了TextView.removeCallbacks()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextView.removeCallbacks()
方法的具体详情如下:
包路径:android.widget.TextView
类名称:TextView
方法名:removeCallbacks
暂无
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onStop() {
fadee.removeCallbacks(this);
super.onStop();
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onStop() {
fadee.removeCallbacks(this);
super.onStop();
}
代码示例来源:origin: google/ExoPlayer
/**
* Stops periodic updates of the {@link TextView}. Must be called from the application's main
* thread.
*/
public final void stop() {
if (!started) {
return;
}
started = false;
player.removeListener(this);
textView.removeCallbacks(this);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onResult(Bundle data, String sessionId,
MediaSessionStatus sessionStatus) {
transcript.removeCallbacks(this);
run();
}
代码示例来源:origin: smuyyh/BookReader
@Override
protected void onDestroy() {
super.onDestroy();
flag = true;
tvSkip.removeCallbacks(runnable);
ButterKnife.unbind(this);
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onResult(Bundle data, String sessionId,
MediaSessionStatus sessionStatus) {
transcript.removeCallbacks(this);
run();
}
代码示例来源:origin: google/ExoPlayer
@SuppressLint("SetTextI18n")
protected final void updateAndPost() {
textView.setText(getDebugString());
textView.removeCallbacks(this);
textView.postDelayed(this, REFRESH_INTERVAL_MS);
}
代码示例来源:origin: yuliskov/SmartYouTubeTV
/**
* Stops periodic updates of the {@link TextView}. Must be called from the application's main
* thread.
*/
public void stop() {
if (!started) {
return;
}
started = false;
player.removeListener(this);
textView.removeCallbacks(this);
}
代码示例来源:origin: omadahealth/LolliPin
/**
* Show an error on the UI using {@link #mIcon} and {@link #mErrorTextView}
*/
private void showError(CharSequence error) {
mIcon.setImageResource(R.drawable.ic_fingerprint_error);
mErrorTextView.setText(error);
mErrorTextView.setTextColor(
mErrorTextView.getResources().getColor(R.color.warning_color, null));
mErrorTextView.removeCallbacks(mResetErrorTextRunnable);
mErrorTextView.postDelayed(mResetErrorTextRunnable, ERROR_TIMEOUT_MILLIS);
}
代码示例来源:origin: googlesamples/android-FingerprintDialog
private void showError(CharSequence error) {
mIcon.setImageResource(R.drawable.ic_fingerprint_error);
mErrorTextView.setText(error);
mErrorTextView.setTextColor(
mErrorTextView.getResources().getColor(R.color.warning_color, null));
mErrorTextView.removeCallbacks(mResetErrorTextRunnable);
mErrorTextView.postDelayed(mResetErrorTextRunnable, ERROR_TIMEOUT_MILLIS);
}
代码示例来源:origin: googlesamples/android-FingerprintDialog
@Override
public void onAuthenticationSucceeded(FingerprintManager.AuthenticationResult result) {
mErrorTextView.removeCallbacks(mResetErrorTextRunnable);
mIcon.setImageResource(R.drawable.ic_fingerprint_success);
mErrorTextView.setTextColor(
mErrorTextView.getResources().getColor(R.color.success_color, null));
mErrorTextView.setText(
mErrorTextView.getResources().getString(R.string.fingerprint_success));
mIcon.postDelayed(new Runnable() {
@Override
public void run() {
mCallback.onAuthenticated();
}
}, SUCCESS_DELAY_MILLIS);
}
代码示例来源:origin: omadahealth/LolliPin
/**
* Called by {@link FingerprintManager} if the authentication succeeded.
*/
@Override
public void onAuthenticationSucceeded(FingerprintManager.AuthenticationResult result) {
mErrorTextView.removeCallbacks(mResetErrorTextRunnable);
mIcon.setImageResource(R.drawable.ic_fingerprint_success);
mErrorTextView.setTextColor(
mErrorTextView.getResources().getColor(R.color.success_color, null));
mErrorTextView.setText(
mErrorTextView.getResources().getString(R.string.pin_code_fingerprint_success));
mIcon.postDelayed(new Runnable() {
@Override
public void run() {
mCallback.onAuthenticated();
}
}, SUCCESS_DELAY_MILLIS);
}
代码示例来源:origin: yuliskov/SmartYouTubeTV
@SuppressLint("SetTextI18n")
private void updateAndPost() {
textView.setText(getPlayerStateString() + getPlayerWindowIndexString() + getPreferredDisplayModeId()
+ getVideoString()
+ getAudioString());
textView.removeCallbacks(this);
textView.postDelayed(this, REFRESH_INTERVAL_MS);
}
代码示例来源:origin: bitmovin/bitcodin-android-demo
/**
* Stops periodic updates of the {@link TextView}.
* <p>
* Should be called from the application's main thread.
*/
public void stop() {
textView.removeCallbacks(this);
}
代码示例来源:origin: noties/Markwon
@Override
public void unscheduleDrawable(@NonNull Drawable who, @NonNull Runnable what) {
view.removeCallbacks(what);
}
}
代码示例来源:origin: freedom10086/Ruisi
@Override
public void notifyViewChange() {
if (target == null) return;
final TextView t = target.get();
if (isViewSet && t != null && spanned != null) {
//这儿会有索引越界
t.removeCallbacks(updateRunable);
t.postDelayed(updateRunable, 200);
}
}
代码示例来源:origin: thealeksandr/PFLockScreen-Android
private void showError(CharSequence error) {
mIcon.setImageResource(R.drawable.ic_fingerprint_error_pf);
mErrorTextView.setText(error);
mErrorTextView.setTextColor(
mErrorTextView.getResources().getColor(R.color.warning_color, null));
mErrorTextView.removeCallbacks(mResetErrorTextRunnable);
mErrorTextView.postDelayed(mResetErrorTextRunnable, ERROR_TIMEOUT_MILLIS);
}
代码示例来源:origin: pinetum/AirUnlock-for-Android
private void showError(CharSequence error) {
mIcon.setImageResource(R.drawable.ic_fingerprint_error);
mErrorTextView.setText(error);
mErrorTextView.setTextColor(
mErrorTextView.getResources().getColor(R.color.warning_color, null));
mErrorTextView.removeCallbacks(mResetErrorTextRunnable);
mErrorTextView.postDelayed(mResetErrorTextRunnable, ERROR_TIMEOUT_MILLIS);
}
代码示例来源:origin: aitorvs/fingerlock
private void showError(CharSequence error) {
if (getActivity() == null) return;
mFingerprintIcon.setImageResource(R.drawable.ic_fingerprint_error);
mFingerprintStatus.setText(error);
mFingerprintStatus.setTextColor(ContextCompat.getColor(getActivity(), R.color.warning_color));
mFingerprintStatus.removeCallbacks(mResetErrorTextRunnable);
mFingerprintStatus.postDelayed(mResetErrorTextRunnable, ERROR_TIMEOUT_MILLIS);
}
代码示例来源:origin: sorz/TinyKeePass
public void stop() {
if (cancellationSignal != null)
cancellationSignal.cancel();
textFingerprintStatus.removeCallbacks(resetErrorTextRunnable);
imageFingerprintIcon.removeCallbacks(authenticationErrorRunnable);
}
内容来源于网络,如有侵权,请联系作者删除!