How to hide keyboard in AI2?

2,234 views
Skip to first unread message

Ryan Cheung

unread,
Nov 11, 2015, 1:34:47 AM11/11/15
to MIT App Inventor Forum
I set multi text box and one button to save the record. I want the keyboard can be hide after the button clicked. But I found only multiline text box can hide keyboard . It is not works fine. 

Ryan

Taifun

unread,
Nov 11, 2015, 8:18:02 AM11/11/15
to MIT App Inventor Forum
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

Ryan Cheung

unread,
Nov 11, 2015, 9:39:48 AM11/11/15
to MIT App Inventor Forum
After the "generate table" button click. The keyboard blocked the webviewer

Ryan
blocks (7).png
test_input_to_table (2).aia
Screenshot_2015-11-11-22-36-16.png

Scott Ferguson

unread,
Nov 12, 2015, 9:32:32 PM11/12/15
to MIT App Inventor Forum
Put your table (in the WebViewer) at the top of the screen (you can set Visible to false until you need to see the table if you wish).
---
sf

Enis

unread,
Nov 13, 2015, 12:22:34 AM11/13/15
to mitappinv...@googlegroups.com
The easiest way is to pick any text box in your screen, and when the submit button is clicked, hide the keyboard for that component.  It won't shift focus to that box, but the keyboard will indeed collapse.

This has nothing to do with whether or not the textbox is multi-line.

Boban Stojmenovic

unread,
Nov 13, 2015, 8:31:23 AM11/13/15
to MIT App Inventor Forum

Doesn't this work for you, if you do like this...





Ryan Cheung

unread,
Nov 13, 2015, 10:14:05 PM11/13/15
to MIT App Inventor Forum
Thanks Boban. It works fine.

Ryan
Reply all
Reply to author
Forward
0 new messages