titanium-mobile

Disable autoscroll top on insertRowBefore in a TableView in Appcelerator/Titanium

梦想的初衷 提交于 2019-12-25 02:26:36
问题 i'm currently using a TableView to display some elements in Appcelerator/Titanium. The problem that i have is that when i make a pull to refresh and i call the method " insertRowBefore " to insert new elements at the beginning of the table using the method like following: $.table.insertRowBefore(0,row); The table auto scrolls to top, and it looks a little bit bad when there're a lot rows to insert, i want to keep the current position. Any ideas? 回答1: I have had the same problem it looks very

Android Action Bar theme

南楼画角 提交于 2019-12-25 01:35:32
问题 <?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.Titanium" parent="android:Theme.NoTitleBar.Fullscreen"> <item name="android:windowBackground">@drawable/background</item> </style> </resources> How can i customize my ActionBar component using theme.xml. I tried to generate these files and did place in my platform/android/res folder , but no luck http://jgilfelt.github.com/android-actionbarstylegenerator/#name=ActionBar&compat=holo&theme=light&actionbarstyle=solid&backColor

How to reload the tab in tab group in titanium alloy

人盡茶涼 提交于 2019-12-25 01:15:16
问题 I have three tabs in my tab group. One tab is for change language. If user changes the language I should need to change the selected language for all the tabs. my tab group code is as follows, <Alloy> <TabGroup id="myTabGrp"> //Tabgroup Added <Tab id="one"> <Window class="container"> <Label>This is the Home View</Label> </Window> </Tab> <Tab id="two"> <Window class="container" id="winTwo"> <Label>This is the second View</Label> </Window> </Tab> <Tab id="three"> <Window class="container">

After Refresh dont append the same data

可紊 提交于 2019-12-25 00:48:44
问题 im using for first time appcelerator for a Iphone app, im using a TableViewRow, when the window load all is fine, but if i want to refresh the window, the TableViewRow repeat the same data every time that i push refresh, so, i have 5 Categories, after refresh im having the same Categories repeting every time that im trying to refresh. Ti.UI.backgroundColor = '#dddddd'; var url = "http://remoteJSON.js"; var win = Titanium.UI.currentWindow; var table = Titanium.UI.createTableView(); var

zxing barcode scanner autofocus issue on reading second qr code

北城以北 提交于 2019-12-24 17:53:26
问题 I'm using the zxing (http://code.google.com/p/zxing/) library for doing qr code reading on Android and iOS. It works great for reading the first qr code, however then it runs into issues. An easy way to reproduce is to read a qr code, and then place another qr code in front of the device. The scanner will not read the new qr code. After moving the device so that the qr code is completely off the screen, then moving the device to refocus on the qr code, it will read it successfully. Is there

zxing barcode scanner autofocus issue on reading second qr code

一个人想着一个人 提交于 2019-12-24 17:53:19
问题 I'm using the zxing (http://code.google.com/p/zxing/) library for doing qr code reading on Android and iOS. It works great for reading the first qr code, however then it runs into issues. An easy way to reproduce is to read a qr code, and then place another qr code in front of the device. The scanner will not read the new qr code. After moving the device so that the qr code is completely off the screen, then moving the device to refocus on the qr code, it will read it successfully. Is there

titanium content assist is not working for my simple app

心已入冬 提交于 2019-12-24 13:26:24
问题 This is myFirstApp in titanium but its not showing me content Assist So please give me right suggestion so i can work with better in titanium. 回答1: I have not selected yet Titanium SDk which is If you right click on a project, select "Properties" and then "Project Build Path," what SDK file is selected there? description : refer here 回答2: well, open tiapp.xml and make sure you select an SDK. but I can tell from from my experience with Titanium Studion - intelisense doesn't always work.

Issue with displaying the radio button label in tianium?

别说谁变了你拦得住时间么 提交于 2019-12-24 12:23:55
问题 I have created a radio button from the following link, https://github.com/yozef/TiRadioButtonGroup. I am able to see the radio buttons but the respective radio button labels are not showing. How can we display the radio button labels. My code: View: <Alloy> <Window class="container"> <View id="radiopicker" ></View> </Window> </Alloy> Style: ".container": { backgroundColor:"red", layout: 'vertical' } "#radiopicker": { width: '90%', top: '25dp' } Controller: (function() { var radioButton =

Can't see titanium module in the list even after successful installation

て烟熏妆下的殇ゞ 提交于 2019-12-24 11:21:39
问题 I am on a Mac Machine I have installed module but while adding from tiapp.xml the module is not showing the list. Can anyone help on this problem. Thanks in advance. 回答1: There are a couple of ways to install a module. 1) The first way you mentioned by going into Studio. Help > Install Mobile Module. A module dialog will pop up, enter the URL of the module's ZIP file, or click Browse and locate the ZIP file using finder. 2) If you are having trouble you can install it manually by unzipping

XML Parsing failure on Android but works on iPhone

蹲街弑〆低调 提交于 2019-12-24 10:44:05
问题 Appcelerator Q&A Link: XML Parsing failure on Android but works on iPhone I am preparing a general application which works both for iPhone and Android phones with same code for which Titanium is majorly used for. With the same code I found different results for XML document parsing and my android app does not load it properly. It causes NULLPointer Exception. But the same code works perfectly on iPhone. Can you check this? xyz(languageCode, currentVersion, xmldoc) { try { Ti.API.info('Start