本文整理汇总了Java中android.widget.EditText.setSelected方法的典型用法代码示例。如果您正苦于以下问题:Java EditText.setSelected方法的具体用法?Java EditText.setSelected怎么用?Java EditText.setSelected使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.widget.EditText
的用法示例。
在下文中一共展示了EditText.setSelected方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initializeViewComponents
import android.widget.EditText; //导入方法依赖的package包/类
private void initializeViewComponents() {
logInGoogleBtn = (Button) findViewById(R.id.log_in_google_btn);
logInDefaultBtn = (Button) findViewById(R.id.log_in_default_btn);
registerBtn = (TextView) findViewById(R.id.register_btn);
forgotPasswordBtn = (TextView) findViewById(R.id.forgot_password_btn);
regulations = (TextView) findViewById(R.id.regulations_btn);
emailText = (EditText) findViewById(R.id.email_login_text);
emailText.setSelected(false);
updateRememberedEmail();
passwordText = (EditText) findViewById(R.id.password_login_text);
passwordText.setTypeface(Typeface.DEFAULT);
passwordText.setTransformationMethod(new PasswordTransformationMethod());
passwordText.setSelected(false);
}
示例2: onFinishInflate
import android.widget.EditText; //导入方法依赖的package包/类
@Override
protected void onFinishInflate() {
setupKeypad();
mDigits = (EditText) findViewById(R.id.digits);
mDelete = (ImageButton) findViewById(R.id.deleteButton);
mOverflowMenuButton = findViewById(R.id.dialpad_overflow);
mRateContainer = (ViewGroup) findViewById(R.id.rate_container);
mIldCountry = (TextView) mRateContainer.findViewById(R.id.ild_country);
mIldRate = (TextView) mRateContainer.findViewById(R.id.ild_rate);
AccessibilityManager accessibilityManager =
(AccessibilityManager) getContext().getSystemService(Context.ACCESSIBILITY_SERVICE);
if (accessibilityManager.isEnabled()) {
// The text view must be selected to send accessibility events.
mDigits.setSelected(true);
}
}
示例3: initView
import android.widget.EditText; //导入方法依赖的package包/类
@Override
protected void initView()
{
if (!TextUtils.isEmpty(mTitle))
{
setActionBarTitle(mTitle);
}
send_comment = (TextView) findViewById(R.id.send_comment);
et_content = (EditText) findViewById(R.id.et_content);
send_comment.setOnClickListener(this);
et_content.setSelected(false);
et_content.clearFocus();
//ViewUtils.hideSoftInput(this);
//et_content.clearFocus();
}