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

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

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

Button.isShown介绍

暂无

代码示例

代码示例来源:origin: GitLqr/LQRWeChat

});
mIvAudio.setOnClickListener(v -> {
  if (mBtnAudio.isShown()) {
    hideAudioButton();
    mEtContent.requestFocus();

代码示例来源:origin: veryyoung/WechatLuckyMoney

@Override
  protected void afterHookedMethod(MethodHookParam param) throws Throwable {
    if (PreferencesUtils.quickOpen()) {
      Button button = (Button) findFirstFieldByExactType(param.thisObject.getClass(), Button.class).get(param.thisObject);
      if (button.isShown() && button.isClickable()) {
        button.performClick();
      }
    }
  }
});

代码示例来源:origin: YiChat/android_YiChat_Lite

public boolean interceptBackPress() {
  // TODO: 15/11/2 change this method's name
  if (ll_more.isShown()) {
    hideEmotionLayout(false);
    if (!btn_emoticons_normal.isShown()) {
      btn_emoticons_checked.setVisibility(GONE);
      btn_emoticons_normal.setVisibility(VISIBLE);
    }
    return true;
  }
  return false;
}

代码示例来源:origin: huangfangyi/YiChat

public boolean interceptBackPress() {
  // TODO: 15/11/2 change this method's name
  if (ll_more.isShown()) {
    hideEmotionLayout(false);
    if (!btn_emoticons_normal.isShown()) {
      btn_emoticons_checked.setVisibility(GONE);
      btn_emoticons_normal.setVisibility(VISIBLE);
    }
    return true;
  }
  return false;
}

代码示例来源:origin: huangfangyi/YiChat

@Override
  public boolean onTouch(View v, MotionEvent event) {
    if (event.getAction() == MotionEvent.ACTION_UP) {
      if (!btn_emoticons_normal.isShown()) {
        btn_emoticons_checked.setVisibility(GONE);
        btn_emoticons_normal.setVisibility(VISIBLE);
      }
      if (ll_more.isShown()) {
        lockContentHeight();
        hideEmotionLayout(true);
        et_sendmessage.postDelayed(new Runnable() {
          @Override
          public void run() {
            unlockContentHeightDelayed();
          }
        }, 200L);
        inputViewLisenter.onEditTextUp();
        return false;
      }
      if (!isSoftInputShown()) {
        inputViewLisenter.onEditTextUp();
      }
    }
    return false;
  }
});

代码示例来源:origin: YiChat/android_YiChat_Lite

@Override
  public boolean onTouch(View v, MotionEvent event) {
    if (event.getAction() == MotionEvent.ACTION_UP) {
      if (!btn_emoticons_normal.isShown()) {
        btn_emoticons_checked.setVisibility(GONE);
        btn_emoticons_normal.setVisibility(VISIBLE);
      }
      if (ll_more.isShown()) {
        lockContentHeight();
        hideEmotionLayout(true);
        et_sendmessage.postDelayed(new Runnable() {
          @Override
          public void run() {
            unlockContentHeightDelayed();
          }
        }, 200L);
        inputViewLisenter.onEditTextUp();
        return false;
      }
      if (!isSoftInputShown()) {
        inputViewLisenter.onEditTextUp();
      }
    }
    return false;
  }
});

相关文章

Button类方法