Browse Source

Login screen keyboard ballon added

master
preyearegmi 6 years ago
parent
commit
dd8621ec31
  1. 2
      app/src/main/AndroidManifest.xml
  2. 7
      app/src/main/java/com/gmeremit/online/gmeremittance_native/loginV2/view/LoginV2Activity.java
  3. 3
      app/src/main/java/com/gmeremit/online/gmeremittance_native/transactionpasspromt/TransactionPasswordPromptActivity.java
  4. 4
      app/src/main/java/com/gmeremit/online/gmeremittance_native/utils/security/securitykeypad/SecurityKeypadRequestParamBuilder.java
  5. 18
      app/src/main/res/layout/activity_login_v2.xml
  6. 12
      app/src/main/res/layout/activity_transaction_password_prompt.xml

2
app/src/main/AndroidManifest.xml

@ -271,7 +271,7 @@
android:name=".loginV2.view.LoginV2Activity" android:name=".loginV2.view.LoginV2Activity"
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar" android:theme="@style/AppTheme.NoActionBar"
android:windowSoftInputMode="stateAlwaysHidden" />
android:windowSoftInputMode="adjustResize" />
<activity <activity
android:name=".registerV2.view.RegisterV2Activity" android:name=".registerV2.view.RegisterV2Activity"
android:screenOrientation="portrait" android:screenOrientation="portrait"

7
app/src/main/java/com/gmeremit/online/gmeremittance_native/loginV2/view/LoginV2Activity.java

@ -126,6 +126,7 @@ public class LoginV2Activity extends BaseActivity implements View.OnClickListene
securityKeyboardManager = new SecurityKeyboardManager(this); securityKeyboardManager = new SecurityKeyboardManager(this);
SecurityKeypadRequestParamBuilder request = new SecurityKeypadRequestParamBuilder(this); SecurityKeypadRequestParamBuilder request = new SecurityKeypadRequestParamBuilder(this);
request.setHintString("Password"); request.setHintString("Password");
request.disableKeyPadEffect(false);
securityKeyboardManager.bindWithSecurityWidgetView(securityKeyboardView) securityKeyboardManager.bindWithSecurityWidgetView(securityKeyboardView)
.setBallonView(ballonView) .setBallonView(ballonView)
@ -342,9 +343,9 @@ public class LoginV2Activity extends BaseActivity implements View.OnClickListene
if (securityKeyboardManager != null && !securityKeyboardManager.isKeyboardVisible()) { if (securityKeyboardManager != null && !securityKeyboardManager.isKeyboardVisible()) {
hideKeyBoard(); hideKeyBoard();
securityKeyboardManager.showKeyboard(); securityKeyboardManager.showKeyboard();
scrollView.postDelayed(()->{
scrollView.smoothScrollTo(0,rootView.getBottom());
},250);
// scrollView.postDelayed(()->{
// scrollView.smoothScrollTo(0,rootView.getBottom());
// },250);
} }
} }

3
app/src/main/java/com/gmeremit/online/gmeremittance_native/transactionpasspromt/TransactionPasswordPromptActivity.java

@ -10,6 +10,7 @@ import android.support.v4.view.GestureDetectorCompat;
import android.util.Log; import android.util.Log;
import android.view.GestureDetector; import android.view.GestureDetector;
import android.view.MotionEvent; import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.view.Window; import android.view.Window;
import android.widget.FrameLayout; import android.widget.FrameLayout;
@ -42,7 +43,7 @@ public class TransactionPasswordPromptActivity extends BaseActivity implements S
RelativeLayout ballonView; RelativeLayout ballonView;
@BindView(R.id.rootView) @BindView(R.id.rootView)
LinearLayout rootView;
View rootView;
@BindView(R.id.passwordErrorTxt) @BindView(R.id.passwordErrorTxt)

4
app/src/main/java/com/gmeremit/online/gmeremittance_native/utils/security/securitykeypad/SecurityKeypadRequestParamBuilder.java

@ -219,8 +219,8 @@ public class SecurityKeypadRequestParamBuilder
newIntent.putExtra(TransKeyActivity.mTK_PARAM_LANGUAGE, TransKeyActivity. mTK_Language_English); newIntent.putExtra(TransKeyActivity.mTK_PARAM_LANGUAGE, TransKeyActivity. mTK_Language_English);
newIntent.putExtra(TransKeyActivity.mTK_PARAM_PLAY_RES_BUTTON_SOUND, true); newIntent.putExtra(TransKeyActivity.mTK_PARAM_PLAY_RES_BUTTON_SOUND, true);
newIntent.putExtra (TransKeyActivity.mTK_PARAM_QWERTY_HEIGHT, (float).95);
newIntent.putExtra(TransKeyActivity.mTK_PARAM_QWERTY_BUTTON_MARGIN, 1.5f);
newIntent.putExtra (TransKeyActivity.mTK_PARAM_QWERTY_HEIGHT, 1f);
newIntent.putExtra(TransKeyActivity.mTK_PARAM_QWERTY_BUTTON_MARGIN, 1f);
newIntent.putExtra(TransKeyActivity.mTK_PARAM_DISABLE_BUTTON_EFFECT, this.shouldDisableKeypadEffect); newIntent.putExtra(TransKeyActivity.mTK_PARAM_DISABLE_BUTTON_EFFECT, this.shouldDisableKeypadEffect);

18
app/src/main/res/layout/activity_login_v2.xml

@ -1,9 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/rootViewLogin" android:id="@+id/rootViewLogin"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:focusableInTouchMode="true" android:focusableInTouchMode="true"
@ -15,7 +21,6 @@
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:background="#fff" android:background="#fff"
tools:context="com.gmeremit.online.gmeremittance_native.sign_in.view.LoginView"> tools:context="com.gmeremit.online.gmeremittance_native.sign_in.view.LoginView">
<ScrollView <ScrollView
@ -222,11 +227,12 @@
</FrameLayout> </FrameLayout>
</LinearLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/keypadBallon" android:id="@+id/keypadBallon"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="match_parent"
/> />
</LinearLayout>
</RelativeLayout>

12
app/src/main/res/layout/activity_transaction_password_prompt.xml

@ -2,13 +2,11 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:id="@+id/rootView"
> >
<LinearLayout <LinearLayout
android:id="@+id/rootView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:clipChildren="true"
android:fitsSystemWindows="true"
android:orientation="vertical"> android:orientation="vertical">
<!--<FrameLayout--> <!--<FrameLayout-->
<!--android:layout_height="?actionBarSize"--> <!--android:layout_height="?actionBarSize"-->
@ -59,22 +57,18 @@
android:paddingBottom="2dp" android:paddingBottom="2dp"
android:paddingTop="2dp" /> android:paddingTop="2dp" />
<RelativeLayout
<View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1">
android:layout_weight="1"/>
<FrameLayout <FrameLayout
android:id="@+id/keypadContainer" android:id="@+id/keypadContainer"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"> android:layout_gravity="bottom">
</FrameLayout> </FrameLayout>
</RelativeLayout>
</LinearLayout> </LinearLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/keypadBallon" android:id="@+id/keypadBallon"

Loading…
Cancel
Save