appcelerator - Appceleartor - prevent Android keyboard from appearing when clicking on a TableView row -


i in process of building app appcelerator alloy , cannot figure out how prevent android keyboard appearing when click on tableview row - or perhaps when resulting $.mywindow.open() event fires.

here alloy xml:

<alloy> <tabgroup title="testing">     <tab title="news">         <window id="newswindow" class="container" title="news">             <tableview id="tableview"/>         </window>     </tab>     <tab title="photos">         <window class="container" title="photos">             <label>testing</label>         </window>     </tab> </tabgroup> 

here xml of row injected tableview:

<alloy> <tableviewrow id="rowview">     <imageview id="image"/>     <view id="postview" layout="vertical">         <label id="articlelabel"/>         <label id="articledetails"/>     </view> </tableviewrow> 

and here code fires when row clicked.

$.tableview.addeventlistener('click',function(e){ var postview = alloy.createcontroller('postview', e.row.args).getview(); if (os_ios) { $.navgroupwin.openwindow(postview); } if (os_android) {     postview.open(); }  }); 

this may you're looking (in api doc)

softkeyboardonfocus : number determines keyboard behavior when view focused.  1 of titanium.ui.android.soft_keyboard_default_on_focus, titanium.ui.android.soft_keyboard_hide_on_focus, or titanium.ui.android.soft_keyboard_show_on_focus.  default: titanium.ui.android.soft_keyboard_default_on_focus 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -