本文整理了Java中android.widget.ImageButton.postDelayed()
方法的一些代码示例,展示了ImageButton.postDelayed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageButton.postDelayed()
方法的具体详情如下:
包路径:android.widget.ImageButton
类名称:ImageButton
方法名:postDelayed
暂无
代码示例来源:origin: nickbutcher/plaid
fabPosting.setImageDrawable(complete);
complete.start();
fabPosting.postDelayed(() -> fabPosting.setVisibility(View.GONE), 2100); // length of R.drawable.avd_upload_complete
代码示例来源:origin: Calsign/APDE
@Override
public void run() {
if (android.os.Build.VERSION.SDK_INT >= 21) {
AnimatedVectorDrawable anim = (AnimatedVectorDrawable) getResources().getDrawable(run ? R.drawable.run_to_stop : R.drawable.stop_to_run);
runStopMenuButton.setImageDrawable(anim);
anim.start();
runStopMenuButtonAnimating = true;
runStopMenuButton.postDelayed(new Runnable() {
@Override
public void run() {
supportInvalidateOptionsMenu();
runStopMenuButtonAnimating = false;
}
}, getResources().getInteger(R.integer.run_stop_animation_duration));
} else {
supportInvalidateOptionsMenu();
}
}
});
代码示例来源:origin: fython/Blackbulb
private void showAdvancedModeDialog() {
int current = mSettings.getAdvancedMode();
new AlertDialog.Builder(MainActivity.this)
.setTitle(R.string.dialog_choose_mode)
.setSingleChoiceItems(new ModeListAdapter(current), current, (dialog, which) -> {
AlertDialog modeDialog = (AlertDialog) dialog;
ModeListAdapter adapter =
(ModeListAdapter) modeDialog.getListView().getAdapter();
// Set mode value
mSettings.setAdvancedMode(adapter.getItem(which).getModeId());
updateAdvancedModeRow();
// Restart service
mToggle.performClick();
mToggle.postDelayed(() -> mToggle.performClick(), 800);
dialog.dismiss();
})
.setNegativeButton(android.R.string.cancel, null)
.show();
}
代码示例来源:origin: stackoverflow.com
pontos.add(p);
eletron.postDelayed(eletronRunnable,2000);
内容来源于网络,如有侵权,请联系作者删除!