|
|
@ -22,6 +22,7 @@ import android.widget.EditText; |
|
|
|
import android.widget.FrameLayout; |
|
|
|
import android.widget.ProgressBar; |
|
|
|
import android.widget.RelativeLayout; |
|
|
|
import android.widget.ScrollView; |
|
|
|
import android.widget.TextView; |
|
|
|
|
|
|
|
import com.gmeremit.online.gmeremittance_native.R; |
|
|
@ -45,7 +46,7 @@ public class LoginV2Activity extends BaseActivity implements View.OnClickListene |
|
|
|
EditText usernameId; |
|
|
|
|
|
|
|
// @BindView(R.id.passwordId) |
|
|
|
EditText passwordId; |
|
|
|
// EditText passwordId; |
|
|
|
|
|
|
|
@BindView(R.id.btn_submit) |
|
|
|
Button loginBtn; |
|
|
@ -83,6 +84,9 @@ public class LoginV2Activity extends BaseActivity implements View.OnClickListene |
|
|
|
@BindView(R.id.keypadBallon) |
|
|
|
RelativeLayout ballonView; |
|
|
|
|
|
|
|
@BindView(R.id.scrollView) |
|
|
|
ScrollView scrollView; |
|
|
|
|
|
|
|
public String loginButtonText; |
|
|
|
|
|
|
|
|
|
|
@ -198,7 +202,7 @@ public class LoginV2Activity extends BaseActivity implements View.OnClickListene |
|
|
|
break; |
|
|
|
|
|
|
|
case R.id.btn_submit: |
|
|
|
if (presenter.validateAll(usernameId.getText().toString(), passwordId.getText().toString())) { |
|
|
|
if (presenter.validateAll(usernameId.getText().toString(),"123")){ |
|
|
|
hideKeyBoard(); |
|
|
|
rootView.clearFocus(); |
|
|
|
morphButtonIntoProgressBar(); |
|
|
@ -274,7 +278,7 @@ public class LoginV2Activity extends BaseActivity implements View.OnClickListene |
|
|
|
mIsMorphingInProgress = false; |
|
|
|
// ViewCompat.setTranslationZ(progressbar_login, 100); |
|
|
|
progressbar_login.setVisibility(View.VISIBLE); |
|
|
|
presenter.loginUser(usernameId.getText().toString(), passwordId.getText().toString()); |
|
|
|
presenter.loginUser(usernameId.getText().toString(), "123"); |
|
|
|
} |
|
|
|
}); |
|
|
|
mMorphingAnimatorSet.start(); |
|
|
@ -355,6 +359,10 @@ public class LoginV2Activity extends BaseActivity implements View.OnClickListene |
|
|
|
if (securityKeyboardManager != null && !securityKeyboardManager.isKeyboardVisible()) { |
|
|
|
hideKeyBoard(); |
|
|
|
securityKeyboardManager.showKeyboard(); |
|
|
|
scrollView.postDelayed(()->{ |
|
|
|
scrollView.smoothScrollTo(0,rootView.getBottom()); |
|
|
|
},250); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|