Community Questions & Answers

Access the JSON.stringify result

Hi All, I have following code: ~~~ var signR = JSON.stringify(sign); ~~~ and the result of it is : ~~~ [{"policyNumber":"l","signature":"{height=200, cropRect={x=0, width=200, height=200}, media=[object TiBlob], y=0,...

Not showing image in image view

Hi.. I am developing android app in titanium i am getting data from json and showing on the screen every thing is working fine but when it comes to image it is not showing i am trying to get the image from the json object which gives me the link like...

Not Saving Image Flip...

hi all: I'm developing an app where I create a mosaic image by dropping other images on it, then resizing, rotating and flipping those images in order to fit, then using .toImage() to save the rendered view and I'm having a very strange issue: the rotated...

canScale property.......

Hi everyone, i am using titanium after almost one year , and i think there used to be a `canScale ` property for images . But it is not here now. Is there any alternative to that property?

ImageView.center is always undefined

I have an image view in my window. When I click a button I want to slide that image view offscreen. I've tried using I've tried using ImageView.top to move it up and that works to move it off, but when I try to move it back on nothing happens because the...

SetImage in Addevenlistener

var like = Titanium.UI.createImageView({ image: 'images/liked.png', left: 270, top: 5, height: 30, width: 30 }); like.addEventListener('click', function(e) { like.setImage('images/unliked.png'); alert('like pressed'); }); This...

Download image from server (php)

Hello) help me please ~~~ var previewImg = Ti.UI.createImageView({ image: 'http://mydomain.com/account/getpreviewimgone', width: '15%', left: '1.5%', defaultImage: '/previewImgEmpty.png' }); ///not working Php: $content =...

Marker on Image

Hi, I am working on the floor plan app of the buildings. I need to put marker on the specified rooms and area of the building. I would like to get the x,y coordinates and place a marker on that point. But I don't know how to achieve that for both iOS and...

Image scale fill in view

Hello, I can not seem to fill a view with an image keeping the proportion : ~~~ var imageLeft = Ti.UI.createView({ width:100, height:80, top : 5, left : 5, borderRadius: 3, borderWidth: 1, backgroundColor : '#000' }); var image =...

Image Path

This is a crazy beginner question, I know, but it's shocking how little information is out there (or maybe my Google Fu is weak today). I'm just trying to create an `imageView` and I can see that the image is conventionally loaded relative to the...

Using Image as map

Hello, I am working on the university campus informative app in which university map plan is given as images. I would like to do the specific points clicked on images to display the building name with some overlay details. Even how to cover the specific...

ImageView in Android

I'm working on Titanium 3.2.1 and deploying for both iOS and Android. I'm having trouble displaying images on ImageView in Android, i am retrieving the data from the server those are in jpg format, that is working fine in iOS when it comes to android it is...

Showing 1-50 of 1,043 1 2 3 4 5 621