Appcelerator-Q-A-banner

Community Questions & Answers

View not shown

Titanium SDK: 4.1.0GA on iMAC JUST for iOS At first, sorry for my baaaaaad english :-) My problem is: I created a tab group with a window. Tab Group and window have "modal: true" - but my view won´t be shown. The only think i see are the...

Actual width of view

Hi, I want to place several views side by side in a horizontal scrollView, each view contains a dynamic label so its width should be "auto". Since Titanium layout is "absolute", I have to calculate the "left" property of each...

Using toImage() on a View crashes in Android (SDK 1.6.1 and 1.6.2)

The following code works fine for the iPhone - it layers some labels on a view and then you can do a view.toImage(), save the blob data off to the temp directory and I have provided a sample email dialog to show the image being attached as one complete...

New view not opening on click

New view not opening on click ========================= I am new to appcelerator studio and have looked at a lot of post to try and get this to work. When I click on About lionfish in the mobile web preview the about view does not open. This is the code I...

FooterView to scrollView

~~~ var restuarntContainer = Titanium.UI.createScrollView({ width : Ti.UI.SIZE, height : Ti.UI.FILL, contentWidth : Ti.UI.SIZE, contentHeight : Ti.UI.SIZE, showVerticalScrollIndicator : true, showHorizontalScrollIndicator : false, top :...

Slow add view

Hi, SDK titanium 3.5.1GA => Android => Device Galaxy tab 7" => Android 4.1.1 I have the following code : ~~~ view.addEventListener('singletap', function(e) { Ti.API.info('TEST 1 : ' + vmp.time()); ...

Square image

I have square image "buttonLevelW.png". I need put this image to ImageView or View. This View has width "33.33%" . What do I need to set height? This my code: ~~~ function createRow(i) { var row = Ti.UI.createView({ borderColor:...

Showing a view in popup

Hi All, I am developing an ios app using titanium, i want to show a view as a popup in that i have to show picker with values. i want to get the selected picker value from popup view to previous window i am getting the value by using the fire...

Evenly spacing UI elements

I'm starting out with Titanium Mobile and began building a prototype of the UI I wanted. I began with a window that had four buttons stacked vertically and centered horizontally. I wanted the vertical spacing between the buttons and the top/bottom of the...

[iOS] The xml load faster than tss

Hi, I create a View and style by tss file. But when this View is opening, the style was not apply immediately to the View. It looks like the View flash about 100ms with ugly positions, then the tss loaded and become beautiful. Please help me how to fix it....

Dynamic view is not showing

Hi, I am creating one mobile module using titanium studio in which i used one 3rd party jar,by using that jar i am calling custom view that will show in bottom of the screen.When i am calling that view in alloy.js file of my mobile application then that...

Dyanamic view not called

Hi, I am creating one mobile module using titanium studio in which i used one 3rd party jar,by using that jar i am calling custom view that will show in bottom of the screen.When i am calling that view in alloy.js file of my mobile application then that...

Adding Labels in a loop is very slow

I have a loop which adds a variable number of labels to a view in various positions. On the iPhone emulator this runs super fast, but is super slow on the actual iPhone. I'm reproducing native code that I'd previously written in appcelerator, and the...

How to open a TabGroup view

Hi, I need to open a new view when a statement is true, the view is TabGroup based, how does this works? I want to open home.xml : ~~~ <Alloy> <TabGroup> <Require src="profile"/> <Require...

Titanium Trouble positioning a view

I am going to place a view at touch position. This is my code. front_view.addEventListener('longpress', function(e) { tmp_item.text = table2.data[0].rows[index].title; tmp_item.width = 250; tmp_item.applyProperties({ left : e.x, top :...

262 views
asked 7 months ago by Wang Dan
last activity 7 months ago

Trouble shoing a view at touch point

I am going to show a view on the touch point. But the view appears away from touch position. One thing suspicious is that this is working properly on my android tablet but not on android phone. I think there must be a translation between touch position...

Showing 1-50 of 1,397 1 2 3 4 5 628