本文整理了Java中android.support.design.widget.TextInputLayout.setVisibility()
方法的一些代码示例,展示了TextInputLayout.setVisibility()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextInputLayout.setVisibility()
方法的具体详情如下:
包路径:android.support.design.widget.TextInputLayout
类名称:TextInputLayout
方法名:setVisibility
暂无
代码示例来源:origin: apptentive/apptentive-android
private void updateOtherState(boolean showOther) {
if (showOther) {
otherTextInputLayout.setVisibility(View.VISIBLE);
otherTextInput.post(new Runnable() { // TODO: replace with DispatchQueue
@Override
public void run() {
otherTextInput.requestFocus();
((InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE)).showSoftInput(otherTextInput, 0);
}
});
} else {
otherTextInputLayout.setVisibility(View.GONE);
}
}
代码示例来源:origin: braintree/braintree_android
@Override
public void onSmsCodeSent(String enrollmentId, boolean smsCodeRequired) {
mEnrollmentId = enrollmentId;
if (smsCodeRequired) {
mSmsCodeContainer.setVisibility(VISIBLE);
} else {
onCardFormSubmit();
}
}
代码示例来源:origin: playerone-id/EosCommander
private void onCmdSelected( int position ) {
hideKeyboard();
// position == 0 -> get balance..
mTilAccount.setVisibility( ( position == POSITION_GET_BALANCE ) ? View.VISIBLE : View.GONE);
mCurSelectedPosition = position;
}
代码示例来源:origin: sakurajiang/RestAPP
@Override
public boolean onKey(View v, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK&&shake_tv.getVisibility()!=View.VISIBLE) {
shake_tv.setVisibility(View.VISIBLE);
watch_tv.setVisibility(View.VISIBLE);
drawerIcon.setVisibility(View.VISIBLE);
actionBar.setDisplayHomeAsUpEnabled(false);
toolbar.setNavigationIcon(null);
textInputLayout.setVisibility(View.GONE);
return true;
}
return false;
}
});
代码示例来源:origin: sakurajiang/RestAPP
@Override
public void onClick(View v) {
shake_tv.setVisibility(View.VISIBLE);
watch_tv.setVisibility(View.VISIBLE);
drawerIcon.setVisibility(View.VISIBLE);
actionBar.setDisplayHomeAsUpEnabled(false);
toolbar.setNavigationIcon(null);
editText.clearFocus();
InputMethodManager imm = (InputMethodManager)getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);
textInputLayout.setVisibility(View.GONE);
}
});
代码示例来源:origin: openMF/mobile-wallet
@OnClick(R.id.btn_vpa)
public void onVPASelected() {
mBtnVpa.setFocusable(true);
mBtnVpa.setFocusableInTouchMode(true);
mBtnVpa.setBackgroundResource(R.drawable.button_round_primary);
mBtnMobile.setBackgroundResource(R.drawable.button_round_stroke);
mBtnVpa.setTextColor(getResources().getColor(android.R.color.white));
mBtnMobile.setTextColor(getResources().getColor(android.R.color.black));
mRlMobile.setVisibility(View.GONE);
mTilVpa.setVisibility(View.VISIBLE);
}
代码示例来源:origin: openMF/mobile-wallet
@OnClick(R.id.btn_mobile)
public void onMobileSelected() {
mBtnMobile.setFocusable(true);
mBtnMobile.setFocusableInTouchMode(true);
mBtnMobile.setBackgroundResource(R.drawable.button_round_primary);
mBtnVpa.setBackgroundResource(R.drawable.button_round_stroke);
mBtnMobile.setTextColor(getResources().getColor(android.R.color.white));
mBtnVpa.setTextColor(getResources().getColor(android.R.color.black));
mTilVpa.setVisibility(View.GONE);
mRlMobile.setVisibility(View.VISIBLE);
}
代码示例来源:origin: sakurajiang/RestAPP
@Override
public boolean onBackPressed() {
if(shake_tv.getVisibility()!=View.VISIBLE) {
shake_tv.setVisibility(View.VISIBLE);
watch_tv.setVisibility(View.VISIBLE);
drawerIcon.setVisibility(View.VISIBLE);
actionBar.setDisplayHomeAsUpEnabled(false);
toolbar.setNavigationIcon(null);
editText.setFocusable(false);
editText.setFocusableInTouchMode(false);
editText.clearFocus();
textInputLayout.setVisibility(View.GONE);
return true;
}else{
return false;
}
}
//通过点击软键盘可以搜索
代码示例来源:origin: sakurajiang/RestAPP
watch_tv.setVisibility(View.GONE);
drawerIcon.setVisibility(View.GONE);
textInputLayout.setVisibility(View.VISIBLE);
editText.setFocusableInTouchMode(true);
editText.setFocusable(true);
代码示例来源:origin: apptentive/apptentive-android
nameLayout.setVisibility(GONE);
} else {
nameLayout.setVisibility(VISIBLE);
nameLayout.setHint(whoCard.getNameHint());
代码示例来源:origin: braintree/braintree_android
@Override
public void onCapabilitiesFetched(UnionPayCapabilities capabilities) {
mSmsCodeContainer.setVisibility(GONE);
mSmsCode.setText("");
内容来源于网络,如有侵权,请联系作者删除!