Community Questions & Answers
How to hide Keyboard
Hi, I'm new to Titanium and i'm tryin to create a calculator app for my own use. The problem is, that none of the default apple keyboards have the buttons i need, so i'm trying to make a custom keyboard layout with single buttons. My Question is now, how...
Textfield on TableView loses focus (Android)
Usecase: A tabgroup with 2 tabs has a tableview on the 2nd tab with a textfield on a row. After a touch on the textfield the keyboard pops up but then the textfield loses focus(ie. there is no cursor in the field). (Also when using...
Alloy TextArea loses focus when you type more than one line
I've got a text area inside of a table row and as soon as you type something long enough to expand the height of the text area, the box loses focus. They keyboard stays up but nothing typed shows up in the box. Is there an easy way to find out where the...
TextField - next textfield witch <enter>
I am new to android, how is pressing the enter key skip to the next field textfield in android standard keyboard works, but I'm using ccd data collector, it sends enter the code as final
Ti SDK 3.1.0 - TextField has some Serious Issues!
The TextField in Ti SDK 3.1.0.v.2013040912... on MacOSX has some serious issues. Cannot tap into a TextField as it looses focus immediately... works on SDK 3.0.2
Android webview soft keyboard
Hi. I cant seem to find an answer anywhere for this. I have a webview with a form. I cant get the soft keyboard up when touching a input type text element. I see the cursor blinking in the element though. The input type "selec"t works...
Android TextField in TableViewRow does not focus on first touch.
Here is a simple example of the problem. ~~~ var tabGroup = Titanium.UI.createTabGroup(); var win = Titanium.UI.createWindow({ title:'Tab', backgroundColor:'#fff' }); var tab = Titanium.UI.createTab({ title:'Tab', window:win }); var row =...
keyboard toolbars 'swap' when focus changes from one textfield to another
i have 4 textfields each with a keyboard toolbar with 'prev/next' buttons that change focus from one textfield to the next. the problem is that when focus changes the keyboard stays still but the toolbar animates down and back up(swaps). is this correct...
problem focus and window refresh
Hello, I have a window which displays member information with an edit button. When I click edit I open a modal form in full and once I close the form and return to my page. the information has been updated but the old ones are always displayed below...
tab focus and blur
hi, i have this event on tab : ~~~~ var tab5 = Titanium.UI.createTab({ icon: 'images/sondage.png', title: '???????', window: winSondage }); tab5.addEventListener('focus', function(e){ alert('focus'); }); tab5.addEventListener('i',...
How can I tell if an Android App has focus?
I want to know if my Android app has focus or if it's minimized. How can I tell?
Hide Keyboard?
Yeah, I know this question has been asked to death, but I might as well kick a dead horse since my answer or my witnessed behavior isn't in any other question... I have a TextArea object, I give it focus, when I'm done I ask for it to blur() expecting the...
Can camera applications use autofocus?
Hello, I'm looking for a way to use a mobile device's available autofocus feature immediately before taking a photo using takePicture(). I'm having trouble figuring out how to do this. Does anyone have any hints? I'm developing on an Acer Iconia right now,...
Tab refresh - window to previous state
This is probably a big newbie question, but I'm stuck... I have a tab (tab 1) that shows window A. Inside window A something happens and then window A is changed into window B. Now what I need is when I go to tab 2, and then back to tab 1 that window A...
Android: Textfield in TableView gets focus and loses it again
Hi all, I'm displaying a Textfield within a TableView as follows (simplified the code): ~~~ var win1 = Titanium.UI.createWindow({backgroundColor: 'white'}); win1.open(); var table = Ti.UI.createTableView(); win1.add(table); var textfield =...
Don't focus the searchbar wehen opening a window
Hi, i've a problem with the searchbar and a tableview. I have a window with a tableview and a searchbar at the top. Now when i open the window, the searchbar gets the focus und the softkeyboard pops up. On iPhone it works fine. I've only have this problem...
Android Module force focus()
Hi! Am making an Android Module in my app. Is a custom control (a circle), something like a Volume knob. So, if the user swipe on it, the volume goes up and down, depending on the "touchMove" direction. Well, my problem is: when the user stop...
auto-focus on Titanium.UI.TextArea upon window.open in android
I've been struggling with the following bug for the last two days and finally decided to ask the community for a solution or workaround. In the current titanium SDK, the first visible TextArea in a window that is opened is immediately focused and the...
TabGroup in Android always focus first tab and then the selected one???
Hi, we have an android application with a main window that contains a view which opens a tabGroup with 2 tabs (click event of the view). In addition, we set `tabGroup.setActiveTab(1)` just before open the tabGroup. When the tabGroup opens, the first tab...
anim search bar when keyboard appears.
Hello, I am making a multiplatform app under Titanium sdk 2.0.2. My problem is relative to the android version (using sdk 2.2). The first page of the app got a searchbar at his bottom. My goal is to be able to keep seeing the search bar when i am...
Titanium.Desktop window doesn't refocus on ALT+TAB...
I have a simple window with a textarea in it. On Windows 7 x64, if you select the contents of the textarea and ALT+TAB away from the window, when you ALT+TAB back into the window, you cannot resume editing the textarea unless you deliberately click back...
Android window focus/blur event handling diffs
I am completely confused as to how Android handles window and field focus and blur events vs. iOS. If I set up a simple window with one text input field, and set focus and blur event handlers on both the text field and the window, and just open the...
Focus on textfield in a table
Hi, I am getting the text values from my table with this way: ~~~ for (var i = 0; i <2 ; i++ ){ var section = tableView.data[0]; var rows = section.rows; var thirdRow = rows[i]; var children = thirdRow.children; var txt =...
Force Android soft keyboard on TextArea focus
Is it possible to force the Android soft keyboard to appear when a TextArea is focused? Or is this not "the Android way"? Don Thorp's comment...
keyboad popup disabling
i want to know how can i disable keyboard pop up when i open up a screen. also how can i focus it to a particular textbox
BUG: window event listener : Focus runs multiple times in release 2.1.0
Hi, I'm using Ti Studio 2.1.0 SDK running with iOS Target 4.3 SDK. If you run the following code in any window, you'll see that the alert dialog opens at least twice. Is this normal? ~~~ window.addEventListener('focus',...
Tableview: opened focused on the bottom not the top
I am currenting using the scrollToIndex method to go to the bottom of the table. This creates a fast animation that doesn't look too nice. Is there a way to open the table showing the bottom row instead of the top?
Mapview's 'regionchanged' event fires too often
I have a mapview with loading annotations from a server using json based on its region. So the 'regionchanged' fires 4 times when the map loads. It event fires when the window that contains the mapview is not focused. Any way to prevent this? Titanium...
How to focus (run eventListener) on Modal when the Modal window open?--iOS
Hi, Id like to do httpClient request when a modal window open. How would you do? thanks in advance.
Something is stealing my events on my TextFields in a TableView, only on Android
Strange behavior, only on Android (the same code works fine on iPhone): touching the TextFields in my TableView cause an initial focus on the TextField with the correct keyboard shown, then an immediate switch of focus to something else (not sure what),...
How do you reload a different tab from another window?
Hi folks, Hopefully a simple one here! I have a settings screen with a simple button that will remove a setting. Once this button is tapped it'll perform a tiny SQL update, but when I tap back on the tab I want, it'll still show the original content...
TextArea Show Content From Bottom in android
Hello Friends, I have created textArea in a view and View is Refered from the ScrollableView. Problem is that When this window is focused By Default my textArea shows content from the Bottom. I need to show the content from the top. It means currently i...
keyboard issue
This is happening for android but it probably will happen for iPhone also. I have a table view open and i click on post to Facebook. this opens another window (moda in iPhone) which has a text box. If you are logged in it focuses on the text box and the...
Android focus eventListener (Mobile 1.8.2)
I have a launch page that opens when my app starts up which shows an array of icons which link to different pages. I also have a focus event which populates important information on that launch page which needs to be called each time that this page is...
Content in View stacking when window comes into focus
Hi guys, I posted a question previously asking how to get a TabBar to refresh when it's brought into focus. I got that working great. Problem now is that every time I tap the TabBar, it overlays the content each time. It's not overly obvious, but I...
Android enterBackground
Is there any method to know when an application is running in the background? For exemple, when the user presses the "home" button, the app should alert ("goodbye") , and when the user get into the app again, alert ("hi");
eventlistener added two times
I have weird problem with an eventlistener in my view. ~~~ videoListView.addEventListener('click', clickTheView); function clickTheView(e){ var vidWin = createPlayer(e.source.videoId); vidWin.i18n = videoWin.i18n; vidWin.I =...
Does Android not get the window events blur and focus?
As per the title, is it expected that on the android platform windows don't get blur and focus events? Is there another way to tell win a window either gains or loses focus?
What does "dumpCoverage" do?
Hey Guys, I've seem this code on Kitchensink but wasn't sure what is there for. Maybe someone can give me some insight? ~~~ Titanium.UI.currentWindow.addEventListener('focus', function() { Ti.API.info('FOCUS RECEIVED IN...
WebView in TableViewRow doesn't wants to reload when focus (and fail)
Hello, first I have two tabs. In the first one, i can call a window which contains a TableView, and one of the rows is a webView with data in a string ( var data = '<html>Test</html>'; ). But if I scroll down too much, that row becoming...
Textfield on TableView not getting focused in Android
I am having few text fields inside the table view, while clicking on the text fields it is not getting focused. I have seen some [questions](http://developer.appcelerator.com/question/117540/textfield-on-tableview-loses-focus-android) regarding the same...
Notification steal focus
Hello, I got some problem with the first app I am creating with Titanium. When I create a notification, it steal focus if from the app if I am typing something in a <input type="text"> element. What could I do in order to fix this? Or...
Nav Group & splitview
I'm using a navgroup. From this navgroup I open another window that contains a splitview. Everything should work but the windows that are in the splitviews cannot gain focus for textfields for example. I tried to solve that with zindex, but no way to have...
Textfield's and Button does not focus
Hi I have a window with two views, the first contains a tableview and the second 4 textfield's and a button; the problem is that only the tableview have focus the others don't. here is the code: ~~~ var detailWindow = Titanium.UI.currentWindow; var...
1.8.0.1 regression - AlertDialog, when dismissed, doesn't refocus window
In 1.7.5, when the user made a choice from a Ti.UI.AlertDialog, the window that was underneath the AlertDialog received a `focus` event. With 1.8.0.1 (V8, Android 2.2), that focus event never occurs. This is not intended behavior, is it?
Android force keyboard show on focus textfield
Hi there, Got a problem with the keyboard showing up upon focusing a textfield. What I want is if you have opened a window that the keyboard will show up with focusing a textfield in the opened window. Is there a solution or work around for this...
android focus/ blur... help!
I need a little help, I am developing an application for Android in which there is a single text box ... my problem is that this text box is always active (focus) and i only need it to be focus just when i click not before... I have used search.blur()...
Autosave
Hello guyz! Someone know how to autosave my edited files every n minutes or when TS loses focus? Thanks!
Window in tab group focus events still not working on Android
I am on the latest SDK (1.4.1.1) and the latest Titanium tool. I am building this app on my Mac. I noticed that, on Android, window focus events were not being called when the window is in a tab group. There are several other posts here that have been...
How to hide the Keyboard without lose focus on the TextField?
I need to build a numeric pad into my app. Where a TextField is focused I need to the keyboard not popup. Is it possible?