本文整理了Java中android.support.v7.widget.CardView.setEnabled()
方法的一些代码示例,展示了CardView.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CardView.setEnabled()
方法的具体详情如下:
包路径:android.support.v7.widget.CardView
类名称:CardView
方法名:setEnabled
暂无
代码示例来源:origin: lingochamp/okdownload
@Override public void queueEnd(@NonNull DownloadContext context) {
actionView.setTag(null);
actionTv.setText(R.string.start);
// to cancel
controller.stop();
serialRb.setEnabled(true);
parallelRb.setEnabled(true);
deleteActionView.setEnabled(true);
deleteActionView.setCardElevation((Float) deleteActionView.getTag());
deleteActionTv.setEnabled(true);
adapter.notifyDataSetChanged();
}
});
代码示例来源:origin: lingochamp/okdownload
@Override public void onClick(View v) {
final boolean started = v.getTag() != null;
if (started) {
controller.stop();
} else {
v.setTag(new Object());
actionTv.setText(R.string.cancel);
// to start
controller.start(serialRb.isChecked());
adapter.notifyDataSetChanged();
serialRb.setEnabled(false);
parallelRb.setEnabled(false);
deleteActionView.setEnabled(false);
deleteActionView.setTag(deleteActionView.getCardElevation());
deleteActionView.setCardElevation(0);
deleteActionTv.setEnabled(false);
}
}
});
代码示例来源:origin: limuyang2/CardSearchView
search.setEnabled(false);
代码示例来源:origin: Jerey-Jobs/KeepGank
search.setEnabled(false);
代码示例来源:origin: Jerey-Jobs/KeepGank
animator.setDuration(300);
animator.start();
search.setEnabled(true);
search.setEnabled(true);
KeyboardUtils.showSoftInput(editText, context);
代码示例来源:origin: didixyy/BilibiliSearchView
search.setEnabled(false);
animator.setDuration(300);
animator.start();
search.setEnabled(true);
search.setEnabled(true);
代码示例来源:origin: limuyang2/CardSearchView
animator.setDuration(300);
animator.start();
search.setEnabled(true);
search.setEnabled(true);
KeyboardUtils.showSoftInput(editText, context);
代码示例来源:origin: Shahroz16/material-searchview
animator.setDuration(300);
animator.start();
cardLayout.setEnabled(true);
} else {
cardLayout.setVisibility(View.VISIBLE);
cardLayout.setEnabled(true);
内容来源于网络,如有侵权,请联系作者删除!