Browse Source

Keypad ballon effect added in transaction password prompt

master
preyearegmi 6 years ago
parent
commit
9f7d261b35
  1. 1
      app/src/main/java/com/gmeremit/online/gmeremittance_native/transactionpasspromt/TransactionPasswordPromptActivity.java
  2. 11
      app/src/main/java/com/gmeremit/online/gmeremittance_native/utils/security/securitykeypad/SecurityKeypadRequestParamBuilder.java
  3. 22
      app/src/main/res/layout/activity_transaction_password_prompt.xml

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

@ -88,6 +88,7 @@ public class TransactionPasswordPromptActivity extends BaseActivity implements S
securityKeyboardManager = new SecurityKeyboardManager(this);
SecurityKeypadRequestParamBuilder request = new SecurityKeypadRequestParamBuilder(this);
request.setHintString("Password");
request.disableKeyPadEffect(false);
securityKeyboardManager.bindWithSecurityWidgetView(securityKeyboardView)
.setBallonView(ballonView)

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

@ -22,6 +22,7 @@ public class SecurityKeypadRequestParamBuilder
byte[] secureKey;
private final Context context;
private boolean shouldDisableKeypadEffect;
public SecurityKeypadRequestParamBuilder(Context context)
{
@ -65,6 +66,12 @@ public class SecurityKeypadRequestParamBuilder
return this;
}
public SecurityKeypadRequestParamBuilder disableKeyPadEffect(boolean action)
{
this.shouldDisableKeypadEffect=action;
return this;
}
public int getDefaultKeyboardType()
{
return keyPadType;
@ -80,6 +87,7 @@ public class SecurityKeypadRequestParamBuilder
textType= TransKeyActivity.mTK_TYPE_TEXT_PASSWORD_LAST_IMAGE;
this.maxLength=16;
this.keyPadType=mTK_TYPE_KEYPAD_QWERTY_LOWER;
this.shouldDisableKeypadEffect=true;
}
@ -174,7 +182,6 @@ public class SecurityKeypadRequestParamBuilder
newIntent.putExtra(TransKeyActivity.mTK_PARAM_MIN_LENGTH_MESSAGE, "최소 글자 2글자 미만입니다");
newIntent.putExtra(TransKeyActivity.mTK_PARAM_INPUT_MINLENGTH, 0);
newIntent.putExtra(TransKeyActivity.mTK_PARAM_ALERTDIALOG_TITLE, "mTranskey alert");
newIntent.putExtra(TransKeyActivity.mTK_PARAM_DISABLE_BUTTON_EFFECT, true);
// newIntent.putExtra(TransKeyActivity.mTK_PARAM_QWERTY_BUTTON_MARGIN, 1f);
newIntent.putExtra(TransKeyActivity.mTK_PARAM_NUMBER_BUTTON_MARGIN, 0.44f);
@ -214,6 +221,8 @@ public class SecurityKeypadRequestParamBuilder
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_DISABLE_BUTTON_EFFECT, this.shouldDisableKeypadEffect);
return newIntent;
}

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

@ -1,5 +1,9 @@
<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"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:id="@+id/rootView"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -69,12 +73,12 @@
</FrameLayout>
<RelativeLayout
android:id="@+id/keypadBallon"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<RelativeLayout
android:id="@+id/keypadBallon"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</RelativeLayout>
Loading…
Cancel
Save