本文整理匯總了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();
}