本文整理了Java中android.widget.Button.setEnabled()
方法的一些代码示例,展示了Button.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setEnabled()
方法的具体详情如下:
包路径:android.widget.Button
类名称:Button
方法名:setEnabled
暂无
代码示例来源:origin: android-hacker/VirtualXposed
@Override
public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
mSelectedItemIndex = position;
mOkButton.setEnabled(true);
}
});
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onServiceConnected(ComponentName className, IBinder binder) {
binding=(IDownload)binder;
btn.setEnabled(true);
}
代码示例来源:origin: commonsguy/cw-omnibus
private void disconnect() {
binding=null;
btn.setEnabled(false);
}
}
代码示例来源:origin: commonsguy/cw-omnibus
private void disconnect() {
binding=null;
btn.setEnabled(false);
}
}
代码示例来源:origin: daniulive/SmarterStreaming
private void ConfigControlEnable(boolean isEnable) {
btnRecorderMgr.setEnabled(isEnable);
videoEncodeTypeSelector.setEnabled(isEnable);
btnBitrateControl.setEnabled(isEnable);
btnNoiseSuppression.setEnabled(isEnable);
btnAGC.setEnabled(isEnable);
btnSpeex.setEnabled(isEnable);
btnInputPushUrl.setEnabled(isEnable);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
if (requestCode == PICK_REQUEST) {
if (resultCode == RESULT_OK) {
contact=data.getData();
viewButton.setEnabled(true);
}
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
if (requestCode == PICK_REQUEST) {
if (resultCode == RESULT_OK) {
contact=data.getData();
viewButton.setEnabled(true);
}
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
if (requestCode == PICK_REQUEST) {
if (resultCode == RESULT_OK) {
contact=data.getData();
viewButton.setEnabled(true);
}
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
if (requestCode == PICK_REQUEST) {
if (resultCode == RESULT_OK) {
contact=data.getData();
viewButton.setEnabled(true);
}
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public View onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState) {
View result=inflater.inflate(R.layout.main, container, false);
btn=(Button)result.findViewById(R.id.go);
btn.setOnClickListener(this);
btn.setEnabled(binding!=null);
return(result);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public View onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState) {
View result=inflater.inflate(R.layout.main, container, false);
btn=(Button)result.findViewById(R.id.go);
btn.setOnClickListener(this);
btn.setEnabled(binding!=null);
return(result);
}
代码示例来源:origin: TeamNewPipe/NewPipe
private void setDialogButtonsState(AlertDialog dialog, boolean state) {
final Button negativeButton = dialog.getButton(DialogInterface.BUTTON_NEGATIVE);
final Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE);
if (negativeButton == null || positiveButton == null) return;
negativeButton.setEnabled(state);
positiveButton.setEnabled(state);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
protected void onRestoreInstanceState(Bundle state) {
super.onRestoreInstanceState(state);
contact=state.getParcelable("contact");
viewButton.setEnabled(contact != null);
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onServiceConnected(ComponentName className, IBinder binder) {
binding=IDownload.Stub.asInterface(binder);
btn.setEnabled(true);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onServiceConnected(ComponentName className, IBinder binder) {
binding=IDownload.Stub.asInterface(binder);
btn.setEnabled(true);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onServiceConnected(ComponentName className, IBinder binder) {
binding=IDownload.Stub.asInterface(binder);
btn.setEnabled(true);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
viewButton=findViewById(R.id.view);
viewButton.setEnabled(contact != null);
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
viewButton=(Button)findViewById(R.id.view);
contact=(Uri)getLastNonConfigurationInstance();
viewButton.setEnabled(contact != null);
}
代码示例来源:origin: frogermcs/InstaMaterial
@Override
public void onBackPressed() {
if (currentState == STATE_SETUP_PHOTO) {
btnTakePhoto.setEnabled(true);
vUpperPanel.showNext();
vLowerPanel.showNext();
updateState(STATE_TAKE_PHOTO);
} else {
super.onBackPressed();
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onClick(View v) {
getAgain().setEnabled(false);
adapter.clear();
task=new AddStringTask();
task.execute();
}
内容来源于网络,如有侵权,请联系作者删除!