android.widget.ImageButton.getVisibility()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(122)

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

ImageButton.getVisibility介绍

暂无

代码示例

代码示例来源:origin: pchmn/MaterialChipsInput

if(mDeleteButton.getVisibility() == VISIBLE)
  mLabelTextView.setPadding(ViewUtil.dpToPx(12), 0, 0, 0);
else
if(mDeleteButton.getVisibility() == VISIBLE)
  mLabelTextView.setPadding(ViewUtil.dpToPx(8), 0, 0, 0);
else

代码示例来源:origin: heinrichreimer/material-intro

@SuppressWarnings("unused")
public boolean isButtonBackVisible() {
  return miButtonBack.getVisibility() == View.VISIBLE;
}

代码示例来源:origin: heinrichreimer/material-intro

@SuppressWarnings("unused")
public boolean isButtonNextVisible() {
  return miButtonNext.getVisibility() == View.VISIBLE;
}

代码示例来源:origin: WowzaMediaSystems/gocoder-sdk-samples-android

public boolean isVisible() {
  return (imageButton.getVisibility() == View.VISIBLE);
}

代码示例来源:origin: apptentive/apptentive-android

@Override
public void onSingleTapDetected() {
  if (closeButton.getVisibility() == View.GONE) {
    closeButton.setVisibility(View.VISIBLE);
  } else {
    closeButton.setVisibility(View.GONE);
  }
}

代码示例来源:origin: AnandChowdhary/saga-android

@Override
  public void afterTextChanged(Editable editable) {
    if (editable.length() > 0 && mClearButton.getVisibility() != View.VISIBLE) {
      mClearButton.setVisibility(View.VISIBLE);
    }
  }
});

代码示例来源:origin: NightscoutFoundation/xDrip

private boolean hideTreatmentButtonsIfAllDone() {
  if ((btnBloodGlucose.getVisibility() == View.INVISIBLE) &&
      (btnCarbohydrates.getVisibility() == View.INVISIBLE) &&
      (btnInsulinDose.getVisibility() == View.INVISIBLE)) {
    hideAllTreatmentButtons(); // we clear values here also
    //send toast to wear - closes the confirmation activity on the watch
    WatchUpdaterService.sendWearToast("Treatment processed", Toast.LENGTH_LONG);
    return true;
  } else {
    return false;
  }
}

代码示例来源:origin: jamorham/xDrip-plus

private boolean hideTreatmentButtonsIfAllDone() {
  if ((btnBloodGlucose.getVisibility() == View.INVISIBLE) &&
      (btnCarbohydrates.getVisibility() == View.INVISIBLE) &&
      (btnInsulinDose.getVisibility() == View.INVISIBLE)) {
    hideAllTreatmentButtons(); // we clear values here also
    //send toast to wear - closes the confirmation activity on the watch
    WatchUpdaterService.sendWearToast("Treatment processed", Toast.LENGTH_LONG);
    return true;
  } else {
    return false;
  }
}

代码示例来源:origin: JBossOutreach/lead-management-android

@Override
  public boolean onLongClick(View view) {
    final int newVisibility = deleteButton.getVisibility() == View.VISIBLE
        ? View.GONE
        : View.VISIBLE;
    deleteButton.setVisibility(newVisibility);
    if(mPref.getBoolean(PREF_DARK_THEME,false)){
      deleteButton.setBackgroundColor(Color.parseColor("#303030"));
      deleteButton.setImageDrawable(mContext.getResources().getDrawable(R.drawable.ic_close_white));
    }
    return true;
  }
}

代码示例来源:origin: wirasetiawan29/Android

if (nextSlideImageButton.getVisibility() == View.INVISIBLE && !isNextForceHidden) {
  fadeViewIn(nextSlideImageButton);

代码示例来源:origin: jamorham/xDrip-plus

status_helper_dialog.dismiss();
if ((helper_dialog != null) && (helper_dialog.isShowing())) return;
if (btnApprove.getVisibility() == View.VISIBLE) return;
if (JoH.ratelimit("calibrate-sensor_prompt", 10)) {
  final AlertDialog.Builder builder = new AlertDialog.Builder(this);

代码示例来源:origin: NightscoutFoundation/xDrip

status_helper_dialog.dismiss();
if ((helper_dialog != null) && (helper_dialog.isShowing())) return;
if (btnApprove.getVisibility() == View.VISIBLE) return;
if (JoH.ratelimit("calibrate-sensor_prompt", 10)) {
  final AlertDialog.Builder builder = new AlertDialog.Builder(this);

代码示例来源:origin: derry/delion

shouldShowMenuButton() ? View.VISIBLE : View.GONE);
if (mAccessibilitySwitcherButton.getVisibility() == View.GONE
    && mMenuButtonWrapper.getVisibility() == View.GONE) {
  ApiCompatibilityUtils.setPaddingRelative((View) mMenuButtonWrapper.getParent(), 0, 0,

代码示例来源:origin: whyalwaysmea/BigBoom

if (mButton.getVisibility() != View.VISIBLE) {
  return;

相关文章

ImageButton类方法