@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_register);
    ButterKnife.inject(this);
    //        layoutTransition = linearLayoutRegister.getLayoutTransition();
    //        layoutTransition.enableTransitionType(LayoutTransition.CHANGING);
    //        layoutTransition.setDuration(1000);

    try {
      AppConstant.setToolBarColor(RegisterActivity.this);
    } catch (Exception e) {
      e.printStackTrace();
    }
    if (AppConstant.isAndroid5()) {
      btnSignup.setBackground(getDrawable(R.drawable.ripple_accent_round_corner));
    }
    String state = Environment.getExternalStorageState();
    if (Environment.MEDIA_MOUNTED.equals(state)) {
      mFileTemp =
          new File(Environment.getExternalStorageDirectory(), AppConstant.PROFILE_PIC_FILE_NAME);
    } else {
      mFileTemp = new File(getFilesDir(), AppConstant.PROFILE_PIC_FILE_NAME);
    }

    imgRegisterProfilePic.setOnClickListener(this);
    btnSignup.setOnClickListener(this);
    txtPersonalDetail.setOnClickListener(this);
    txtAddressDetail.setOnClickListener(this);
    // etCity.setOnClickListener(this);
    etState.setText("Gujarat");
    etCountry.setText("India");
    etCity.setText("Surat");
    radiobuttonYes.setChecked(true);
    cityList = new String[2];
    cityList[0] = "Surat";
    cityList[1] = "Ahmedabad";
    txtPrivacyPolicy.setOnClickListener(this);
  }
 @Override
 public void onClick(DialogInterface dialog, int which) {
   etCity.setText(cityList[which]);
   alert.dismiss();
   selectedPosition = which;
 }