android.widget.Button.invalidate()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(136)

本文整理了Java中android.widget.Button.invalidate()方法的一些代码示例,展示了Button.invalidate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.invalidate()方法的具体详情如下:
包路径:android.widget.Button
类名称:Button
方法名:invalidate

Button.invalidate介绍

暂无

代码示例

代码示例来源:origin: ZieIony/Carbon

@Override
public void invalidate(@NonNull Rect dirty) {
  super.invalidate(dirty);
  invalidateParentIfNeeded();
}

代码示例来源:origin: ZieIony/Carbon

@Override
public void invalidate(int l, int t, int r, int b) {
  super.invalidate(l, t, r, b);
  invalidateParentIfNeeded();
}

代码示例来源:origin: ZieIony/Carbon

@Override
public void invalidate() {
  super.invalidate();
  invalidateParentIfNeeded();
}

代码示例来源:origin: AlburIvan/SlickForm

/**
 * Change the submit button's text color to the one provided
 *
 * @param resId The color to be applied
 */
public void changeButtonTextColor(int resId) {
  this.slickButtonBackgroundColor = resId;
  slickFormSubmitButton.setTextColor(slickButtonBackgroundColor);
  slickFormSubmitButton.invalidate();
}

代码示例来源:origin: AlburIvan/SlickForm

/**
 * Change the submit button's background color to the one provided, this will not change
 * the circular progress animation's color.
 *
 * @param resId The color to be applied
 */
public void changeButtonBackgroundColor(int resId) {
  this.slickButtonBackgroundColor = resId;
  slickFormSubmitButton.setBackgroundColor(slickButtonBackgroundColor);
  slickFormSubmitButton.invalidate();
}

代码示例来源:origin: stackoverflow.com

b1.invalidate();
b2.invalidate();
Toast.makeText(getApplicationContext(),"b1",1).show();
b1.invalidate();
b2.invalidate();
Toast.makeText(getApplicationContext(),"b2",1).show();

代码示例来源:origin: AlburIvan/SlickForm

/**
 * This method is in charge of iterating the list of FormField(s) available in this instance to
 * remove the old views and supply the new ones as well as changing the label of the button
 * and finally if it processes the last item in the list it will call to
 * {@link SlickForm#processFormFieldEnd} on your behalf.
 *
 */
private void changeTarget() {
  currentFieldPosition++;
  if(currentFieldPosition >= formFields.size()) {
    processFormFieldEnd();
    return;
  }
  FormField field = formFields.get(currentFieldPosition);
  if(currentFieldPosition == formFields.size() - 1) {
    slickFormSubmitButton.setText( field.getStepLabel().equals("Next") ?
            "Submit" : formFields.get(currentFieldPosition).getStepLabel()
    );
    slickFieldContainer.removeViewAt(0);
    slickFieldContainer.addView(field);
  } else {
    slickFieldContainer.removeViewAt(0);
    slickFieldContainer.addView(field);
    slickFormSubmitButton.setText(field.getStepLabel());
  }
  field.getInputField().requestFocus();
  slickFormSubmitButton.invalidate();
}

代码示例来源:origin: stackoverflow.com

positiveButton.setLayoutParams(params);
negativeButton.invalidate();
positiveButton.invalidate();

代码示例来源:origin: stackoverflow.com

button.invalidate();

相关文章

Button类方法