Always show the keyboard when asked for it

and maintain keyboard state when hiding view.
This commit is contained in:
Torsten Grote
2016-10-06 10:41:32 -03:00
parent 3ea36bbd40
commit 154e02723f
6 changed files with 27 additions and 20 deletions

View File

@@ -63,6 +63,7 @@ public class KeyboardAwareLinearLayout extends LinearLayout {
public KeyboardAwareLinearLayout(Context context,
@Nullable AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
rotation = getDeviceRotation();
final int statusBarRes = getResources()
.getIdentifier("status_bar_height", "dimen", "android");
minKeyboardSize =