Java Code Examples for android.widget.AutoCompleteTextView#setVisibility()
The following examples show how to use
android.widget.AutoCompleteTextView#setVisibility() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AccountActivity.java From zom-android-matrix with Apache License 2.0 | 4 votes |
private void setupUIPre () { ((ImApp)getApplication()).setAppTheme(this); setContentView(R.layout.account_activity); getSupportActionBar().setHomeButtonEnabled(true); mIsNewAccount = getIntent().getBooleanExtra("register", false); mEditUserAccount = (EditText) findViewById(R.id.edtName); mEditUserAccount.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { checkUserChanged(); } }); mEditPass = (EditText) findViewById(R.id.edtPass); mEditPassConfirm = (EditText) findViewById(R.id.edtPassConfirm); mSpinnerDomains = (AutoCompleteTextView) findViewById(R.id.spinnerDomains); if (mIsNewAccount) { mEditPassConfirm.setVisibility(View.VISIBLE); mSpinnerDomains.setVisibility(View.VISIBLE); mEditUserAccount.setHint(R.string.account_setup_new_username); /* ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, getResources().getStringArray(R.array.account_domains)); mSpinnerDomains.setAdapter(adapter); */ } //mRememberPass = (CheckBox) findViewById(R.id.rememberPassword); //mUseTor = (CheckBox) findViewById(R.id.useTor); // mBtnSignIn = (Button) findViewById(R.id.btnSignIn); // if (mIsNewAccount) // mBtnSignIn.setText(R.string.btn_create_new_account); mBtnAdvanced = (Button) findViewById(R.id.btnAdvanced); /** mRememberPass.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { updateWidgetState(); } });*/ }
Example 2
Source File: AccountViewFragment.java From zom-android-matrix with Apache License 2.0 | 4 votes |
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.account_activity, container, false); mIsNewAccount = getIntent().getBooleanExtra("register", false); mEditUserAccount = (EditText) view.findViewById(R.id.edtName); mEditUserAccount.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { checkUserChanged(); } }); mEditPass = (EditText) view.findViewById(R.id.edtPass); mEditPassConfirm = (EditText) view.findViewById(R.id.edtPassConfirm); mSpinnerDomains = (AutoCompleteTextView) view.findViewById(R.id.spinnerDomains); if (mIsNewAccount) { mEditPassConfirm.setVisibility(View.VISIBLE); mSpinnerDomains.setVisibility(View.VISIBLE); mEditUserAccount.setHint(R.string.account_setup_new_username); ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_dropdown_item_1line, Server.getServersText(getActivity())); mSpinnerDomains.setAdapter(adapter); } // mRememberPass = (CheckBox) findViewById(R.id.rememberPassword); // mUseTor = (CheckBox) findViewById(R.id.useTor); mBtnSignIn = (Button) view.findViewById(R.id.btnSignIn); if (mIsNewAccount) mBtnSignIn.setText(R.string.btn_create_new_account); //mBtnAdvanced = (Button) findViewById(R.id.btnAdvanced); // mBtnQrDisplay = (Button) findViewById(R.id.btnQR); /* mRememberPass.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { updateWidgetState(); } });*/ return view; }
Example 3
Source File: AccountActivity.java From Zom-Android-XMPP with GNU General Public License v3.0 | 4 votes |
private void setupUIPre () { ((ImApp)getApplication()).setAppTheme(this); setContentView(R.layout.account_activity); getSupportActionBar().setHomeButtonEnabled(true); mIsNewAccount = getIntent().getBooleanExtra("register", false); mEditUserAccount = (EditText) findViewById(R.id.edtName); mEditUserAccount.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { checkUserChanged(); } }); mEditPass = (EditText) findViewById(R.id.edtPass); mEditPassConfirm = (EditText) findViewById(R.id.edtPassConfirm); mSpinnerDomains = (AutoCompleteTextView) findViewById(R.id.spinnerDomains); if (mIsNewAccount) { mEditPassConfirm.setVisibility(View.VISIBLE); mSpinnerDomains.setVisibility(View.VISIBLE); mEditUserAccount.setHint(R.string.account_setup_new_username); /* ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, getResources().getStringArray(R.array.account_domains)); mSpinnerDomains.setAdapter(adapter); */ } //mRememberPass = (CheckBox) findViewById(R.id.rememberPassword); //mUseTor = (CheckBox) findViewById(R.id.useTor); // mBtnSignIn = (Button) findViewById(R.id.btnSignIn); // if (mIsNewAccount) // mBtnSignIn.setText(R.string.btn_create_new_account); mBtnAdvanced = (Button) findViewById(R.id.btnAdvanced); /** mRememberPass.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { updateWidgetState(); } });*/ }
Example 4
Source File: AccountViewFragment.java From Zom-Android-XMPP with GNU General Public License v3.0 | 4 votes |
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.account_activity, container, false); mIsNewAccount = getIntent().getBooleanExtra("register", false); mEditUserAccount = (EditText) view.findViewById(R.id.edtName); mEditUserAccount.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { checkUserChanged(); } }); mEditPass = (EditText) view.findViewById(R.id.edtPass); mEditPassConfirm = (EditText) view.findViewById(R.id.edtPassConfirm); mSpinnerDomains = (AutoCompleteTextView) view.findViewById(R.id.spinnerDomains); if (mIsNewAccount) { mEditPassConfirm.setVisibility(View.VISIBLE); mSpinnerDomains.setVisibility(View.VISIBLE); mEditUserAccount.setHint(R.string.account_setup_new_username); ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_dropdown_item_1line, Server.getServersText(getActivity())); mSpinnerDomains.setAdapter(adapter); } // mRememberPass = (CheckBox) findViewById(R.id.rememberPassword); // mUseTor = (CheckBox) findViewById(R.id.useTor); mBtnSignIn = (Button) view.findViewById(R.id.btnSignIn); if (mIsNewAccount) mBtnSignIn.setText(R.string.btn_create_new_account); //mBtnAdvanced = (Button) findViewById(R.id.btnAdvanced); // mBtnQrDisplay = (Button) findViewById(R.id.btnQR); /* mRememberPass.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { updateWidgetState(); } });*/ return view; }