Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (keyboard)
Viewing all articles
Browse latest Browse all 352

TableView and TextInput in a vertical view, layout problem on keyboard show [Android]

$
0
0

Hi, i've search for hours and I found similar problems, but not the same....

Here is my code:

var instance = Ti.UI.createView({
        height: Ti.UI.FILL,
        width: Ti.UI.FILL,
        layout: 'vertical'
    });
 
    var messagesList = Ti.UI.createTableView({
        width: '100%',
        height: '90%',
        top: 0
    });
 
    messagesList.setData(rows);
    var sendview = Ti.UI.createView({
        layout: 'horizontal',
        height: Ti.UI.SIZE
    });
    var sendinput = Ti.UI.createTextArea({
        hintText:  'Write here'
    });
    var sendbtn = Ti.UI.createButton({
        title: 'Send'
    });
 
    sendview.add(sendinput);
    sendview.add(sendbtn);
    instance.add(messagesList);
When sendinput gain the focus, the keyboard is opened and partially hide sendview. This happen because messagesList has 90% height. But if I set a fix size to messagesList, when the keyboard is opened I can't see sendview.

Same problem using a scrollview instead of a tableview.

How can I solve this problem? Thanks.


Viewing all articles
Browse latest Browse all 352

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>