本文整理了Java中android.widget.Button.isShown()
方法的一些代码示例,展示了Button.isShown()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.isShown()
方法的具体详情如下:
包路径:android.widget.Button
类名称: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;
}
});
内容来源于网络,如有侵权,请联系作者删除!