Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot
  1. ScrollView as parent layout so that it can be scrolled by user.

  2. using only adjustResize

  3. Use software keyboard show/hide eventsoftware keyboard show/hide event to have more control. You can set visibility of the layout below login button with View.GONE while keyboard is visibe.

extra:

Check Specifying the Input Method Type . Next and Done actions for convenience of user

  1. ScrollView as parent layout so that it can be scrolled by user.

  2. using only adjustResize

  3. Use software keyboard show/hide event to have more control. You can set visibility of the layout below login button with View.GONE while keyboard is visibe.

extra:

Check Specifying the Input Method Type . Next and Done actions for convenience of user

  1. ScrollView as parent layout so that it can be scrolled by user.

  2. using only adjustResize

  3. Use software keyboard show/hide event to have more control. You can set visibility of the layout below login button with View.GONE while keyboard is visibe.

extra:

Check Specifying the Input Method Type . Next and Done actions for convenience of user

improved the answer
Source Link
qwr
  • 3.6k
  • 19
  • 29

1)Making parent view ScrollView so that it can be scrolled.you can scroll programmatically,too

2)using adjustResize

3)Tough and long way.Own Keyboard as layout. I did not test all these cases by myself only few I am using

Here how you can achieve :

Use small button keyboard icon button. when it will be toggled show keyboard and vice versa

Or simulating : To make appear your layout use onTouch and .Btw on this case you should hide systemkeyboard using hide soft input

To make disappear use back button press or touch view which is not instance of EditText Here is how to handle back button press

  1. ScrollView as parent layout so that it can be scrolled by user.

  2. using only adjustResize

  3. Use software keyboard show/hide event to have more control. You can set visibility of the layout below login button with View.GONE while keyboard is visibe.

Custom keyboardextra:

Make layout with alphabet(buttons having text with needed symbols) that needed for login and password add the same tag for for distinguishing keyboard buttons from your others buttons inside OnClick() So you can check for tag match

get getCurrentFocus() view that has got focus then test if it is instance of EditText then

Editable text = editText.getText(); text.insert(editText.getSelectionStart(), buttonview.getText()); 

4)Handling when keyboard appear and disappearCheck Should be tested for correctness

so first addSpecifying the Input Method Type adjustResize atribute. Then inside code keyboard appear with OnTouch (set all EditText listens to same OnTouch) Next and inside OnTouch set visibilityDone actions for convenience of some views that you do not want to show. On back button press (which we assume will hide keyboard) and inside other places where you force to hide keyboard call function that set visibility to show views again. (Note: test by yourself if it is correctly handle all keyboard disappearance.)user

1)Making parent view ScrollView so that it can be scrolled.you can scroll programmatically,too

2)using adjustResize

3)Tough and long way.Own Keyboard as layout. I did not test all these cases by myself only few I am using

Here how you can achieve :

Use small button keyboard icon button. when it will be toggled show keyboard and vice versa

Or simulating : To make appear your layout use onTouch and .Btw on this case you should hide systemkeyboard using hide soft input

To make disappear use back button press or touch view which is not instance of EditText Here is how to handle back button press

Custom keyboard:

Make layout with alphabet(buttons having text with needed symbols) that needed for login and password add the same tag for for distinguishing keyboard buttons from your others buttons inside OnClick() So you can check for tag match

get getCurrentFocus() view that has got focus then test if it is instance of EditText then

Editable text = editText.getText(); text.insert(editText.getSelectionStart(), buttonview.getText()); 

4)Handling when keyboard appear and disappear Should be tested for correctness

so first add adjustResize atribute. Then inside code keyboard appear with OnTouch (set all EditText listens to same OnTouch) and inside OnTouch set visibility of some views that you do not want to show. On back button press (which we assume will hide keyboard) and inside other places where you force to hide keyboard call function that set visibility to show views again. (Note: test by yourself if it is correctly handle all keyboard disappearance.)

  1. ScrollView as parent layout so that it can be scrolled by user.

  2. using only adjustResize

  3. Use software keyboard show/hide event to have more control. You can set visibility of the layout below login button with View.GONE while keyboard is visibe.

extra:

Check Specifying the Input Method Type . Next and Done actions for convenience of user

added 68 characters in body
Source Link
qwr
  • 3.6k
  • 19
  • 29

1)Making parent view ScrollView so that it can be scrolled.you can scroll programmatically,too

2)using adjustResize

3)Tough and long way.Own Keyboard as layout. I did not test all these cases by myself only few I am using

Here how you can achieve :

Use small button keyboard icon button. when it will be toggled show keyboard and vice versa

Or simulating : To make appear your layout use onTouch and .Btw on this case you should hide systemkeyboard using hide soft input

To make disappear use back button press or touch view which is not instance of EditText Here is how to handle back button press

Custom keyboard:

Make layout with alphabet(buttons having text with needed symbols) that needed for login and password add the same tag for for distinguishing keyboard buttons from your others buttons inside OnClick() So you can check for tag match

get getCurrentFocus() view that has got focus then test if it is instance of EditText then

Editable text = editText.getText(); text.insert(editText.getSelectionStart(), buttonview.getText()); 

4)Handling when keyboard appear and disappear Should be tested for correctness

so first add adjustResize atribute. Then inside code keyboard appear with OnTouch (set all EditText listens to same OnTouch) and inside OnTouch set visibility of some views that you do not want to show. On back button press (which we assume will hide keyboard) and inside other places where you force to hide keyboard call function that set visibility to visible to to show views again. (Note: test by yourself if it is correctly handle all keyboard disappearance.)

1)Making parent view ScrollView so that it can be scrolled.you can scroll programmatically,too

2)using adjustResize

3)Tough and long way.Own Keyboard as layout. I did not test all these cases by myself only few I am using

Here how you can achieve :

Use small button keyboard icon button. when it will be toggled show keyboard and vice versa

Or simulating : To make appear your layout use onTouch and .Btw on this case you should hide systemkeyboard using hide soft input

To make disappear use back button press or touch view which is not instance of EditText Here is how to handle back button press

Custom keyboard:

Make layout with alphabet(buttons having text with needed symbols) that needed for login and password add the same tag for for distinguishing keyboard buttons from your others buttons inside OnClick() So you can check for tag match

get getCurrentFocus() view that has got focus then test if it is instance of EditText then

Editable text = editText.getText(); text.insert(editText.getSelectionStart(), buttonview.getText()); 

4)Handling when keyboard appear and disappear Should be tested for correctness

so first add adjustResize atribute. Then inside code keyboard appear with OnTouch (set all EditText listens to same OnTouch) and inside OnTouch set visibility of some views that you do not want to show. On back button press (which we assume will hide keyboard) set visibility to visible to show views again. (Note: test by yourself if it is correctly handle all keyboard disappearance.)

1)Making parent view ScrollView so that it can be scrolled.you can scroll programmatically,too

2)using adjustResize

3)Tough and long way.Own Keyboard as layout. I did not test all these cases by myself only few I am using

Here how you can achieve :

Use small button keyboard icon button. when it will be toggled show keyboard and vice versa

Or simulating : To make appear your layout use onTouch and .Btw on this case you should hide systemkeyboard using hide soft input

To make disappear use back button press or touch view which is not instance of EditText Here is how to handle back button press

Custom keyboard:

Make layout with alphabet(buttons having text with needed symbols) that needed for login and password add the same tag for for distinguishing keyboard buttons from your others buttons inside OnClick() So you can check for tag match

get getCurrentFocus() view that has got focus then test if it is instance of EditText then

Editable text = editText.getText(); text.insert(editText.getSelectionStart(), buttonview.getText()); 

4)Handling when keyboard appear and disappear Should be tested for correctness

so first add adjustResize atribute. Then inside code keyboard appear with OnTouch (set all EditText listens to same OnTouch) and inside OnTouch set visibility of some views that you do not want to show. On back button press (which we assume will hide keyboard) and inside other places where you force to hide keyboard call function that set visibility to show views again. (Note: test by yourself if it is correctly handle all keyboard disappearance.)

added 488 characters in body
Source Link
qwr
  • 3.6k
  • 19
  • 29
Loading
formatted
Source Link
qwr
  • 3.6k
  • 19
  • 29
Loading
added 7 characters in body
Source Link
qwr
  • 3.6k
  • 19
  • 29
Loading
Source Link
qwr
  • 3.6k
  • 19
  • 29
Loading