WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a838d43

Browse files
committed
Add hiding and showing of modifier keys
1 parent 36a355e commit a838d43

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22

33
ext.versionMajor = 3 // API Changes, adding big new feature, redesign the App
44
ext.versionMinor = 0 // New features in a backwards-compatible manner
5-
ext.versionPatch = 2 // Backwards-compatible bug fixes
5+
ext.versionPatch = 3 // Backwards-compatible bug fixes
66
ext.versionClassifier = null // Pre-releases (alpha, beta, rc, SNAPSHOT...)
77

88
android {

lib/src/main/java/com/davidmiguel/numberkeyboard/NumberKeyboard.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,22 @@ public void showRightAuxButton() {
140140
rightAuxBtn.setVisibility(VISIBLE);
141141
}
142142

143+
/**
144+
* Hides a modifier button.
145+
* @param modifierIdx index of modifier key
146+
*/
147+
public void hideModifierButton(final int modifierIdx) {
148+
modifierKeys.get(modifierIdx).setVisibility(GONE);
149+
}
150+
151+
/**
152+
* Shows a modifier button.
153+
* @param modifierIdx index of modifier key
154+
*/
155+
public void showModifierButton(final int modifierIdx) {
156+
modifierKeys.get(modifierIdx).setVisibility(VISIBLE);
157+
}
158+
143159
/**
144160
* Sets left auxiliary button to send the IME action if EditText has been connected via
145161
* {@link #setEditText(EditText) setEditText}. Note that setting this to false

0 commit comments

Comments
 (0)