@Override
  public void InitView() {
    setContentView(R.layout.activity_my_profile_phone_verify_mobile);
    countries = mContext.getResources().getStringArray(R.array.country);

    MaterialAppBar appbar = (MaterialAppBar) findViewById(R.id.appbar);
    appbar.setTouchFeedback(MaterialAppBar.TOUCH_FEEDBACK_HOLO_LIGHT);
    appbar.addButtonToLeft(android.R.id.button1, "back", R.drawable.ic_close_grey600_24dp);
    appbar.setTitle("Verify mobile number", getResources().getColor(R.color.text_color_dark));
    appbar.setOnButtonClickListener(this);

    editTextUnitedStates = (MaterialTextField) findViewById(R.id.editTextUnitedStates);
    editTextPhoneNumber = (MaterialTextField) findViewById(R.id.editTextPhoneNumber);

    editTextPhoneNumber.requestFocus();
    editTextPhoneNumber.getEditor().setTextSize(20);
    editTextUnitedStates.getEditor().setTextSize(20);

    editTextPhoneNumber.getEditor().setSingleLine();
    editTextPhoneNumber.setNumber();
    editTextPhoneNumber.setHint("Your mobile number");

    editTextUnitedStates.getEditor().setSingleLine();

    editTextUnitedStates.setText("United States (+1)");
    editTextUnitedStates.setOnFocusChangedCallback(this);

    editTextUnitedStates.getEditor().setText(countries[222]);
    editTextUnitedStates.setTag(222);
  }
Exemplo n.º 2
0
  @Override
  public void InitView() {
    setContentView(R.layout.activity_setting);
    appbar = (MaterialAppBar) findViewById(R.id.appbar);
    appbar.setTouchFeedback(MaterialAppBar.TOUCH_FEEDBACK_HOLO_LIGHT);
    appbar.addButtonToLeft(R.id.common_button_back, "", R.drawable.ic_arrow_back_grey600_24dp);
    appbar.setTitle(getString(R.string.Settings), getResources().getColor(R.color.text_color_dark));
    appbar.setOnButtonClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View v) {
            // TODO Auto-generated method stub
            if (v.getId() == R.id.common_button_back) {
              finish();
            }
          }
        });

    /** Notification */
    textViewChatNotification = (TextView) findViewById(R.id.textViewChatNotification);
    textViewMailNotification = (TextView) findViewById(R.id.textViewMailNotification);
    textViewPushNotification = (TextView) findViewById(R.id.textViewPushNotification);

    /** Application */
    imageViewCheckUpdate = (ImageView) findViewById(R.id.imageViewCheckUpdate);
    imageViewCheckUpdate.setVisibility(View.INVISIBLE);
    textViewCurrentVersion = (TextView) findViewById(R.id.textViewCurrentVersion);
  }