Skip to content

Commit

Permalink
Add hiding and showing of modifier keys
Browse files Browse the repository at this point in the history
  • Loading branch information
unverbraucht committed Aug 22, 2018
1 parent 36a355e commit a838d43
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'

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

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,22 @@ public void showRightAuxButton() {
rightAuxBtn.setVisibility(VISIBLE);
}

/**
* Hides a modifier button.
* @param modifierIdx index of modifier key
*/
public void hideModifierButton(final int modifierIdx) {
modifierKeys.get(modifierIdx).setVisibility(GONE);
}

/**
* Shows a modifier button.
* @param modifierIdx index of modifier key
*/
public void showModifierButton(final int modifierIdx) {
modifierKeys.get(modifierIdx).setVisibility(VISIBLE);
}

/**
* Sets left auxiliary button to send the IME action if EditText has been connected via
* {@link #setEditText(EditText) setEditText}. Note that setting this to false
Expand Down

0 comments on commit a838d43

Please sign in to comment.