Community Questions & Answers
Animation stops on iPhone app resume
Hi, I use this function to move some imageView in my iPhone app: ~~~ function startImageViewAnimation() { var m = require("ui/common/moveTo"); var platformHeight = Ti.Platform.displayCaps.platformHeight; m.moveTo({ view :...
how to add an image from k.js to p.xml from in alloy mobile app
hi friends i am new to develop an in alloy mobile application in titanium studio i had an issue like i want to add an view from k.js to p.xml in my application so plzzzzzzzzzzz help me
Android - 9patch image as View backgroundImage not scaling properly
I have a 9patch image which scales nicely as the _backgroundImage_ of a button. When I take this same image and apply it as the _backgroundImage_ of a _View_, it does not scale intelligently - just stretches the whole image. The same thing happens when...
Animate Remote Images -
Hi, I try to animate remote image. All is OK on simulator but not on devices (iphone / ipad). All is OK on device too, if I use `image` and not `images` (but of course I've only one image and not an animation). I try this : ~~~ // load images var...
How to extract an image src from RSS feed node
Hi guys, I've got a very successful RSS reader iOS app (that's not all it does) that needs some small tweaks. One of these includes showing preview images of each blog post on the main screen. These appear in the <description> node of the RSS feed...
imageview image finish loading event
which event is fired when imageview finish the remote image loading ? i want to check the height and width of the image after it finish the loading from remote images.
ImageView Slider Animation doesnt work on Android Device
Hi, I tried to animate 2 imageviews. I have an array of images which shall slide in to create some kind of stacking effect. On the Emulator the animation works fine but on the device (S2) the images are just poping up and flickering. Here is my...
Listview: dynamic loading of imagesin ListViewitem
Hi, in this [webcamApp](https://github.com/AppWerft/Axis-IP-Cameras/blob/master/Resources/listofcameras.js) I show in a listview of cameras. Left are previews of cameras. It is a simple image property of image view. I need more control over the image: if...
imageview placeholder
i have images which loads url . i want to display the alternative text if image is not available .. also i want to show the indicator in imageview which hides automatically when image download from the server .. any help?
Android SDK 3.1: ImageViews don't stretch and keep ratio anymore
Hello, Since updating to SDK 3.1, **imageViews in Android don't keep ratios of pictures** when specified any height and width different than 'auto' or Ti.UI.SIZE. For example, you can't make an ImageView fill its parent view with Ti.UI.FILL in height and...
ImageView not loading from some sources
Sorry for the [double post](http://developer.appcelerator.com/question/128694/imageviews-not-loading-remote-images-on-device), but I can't seem to find a way to edit questions. I am having trouble loading files from remote sources using an ImageView;...
Getting Remote image issue
Hello I am trying to get image from remote server. It works perfect with Wi-Fi, but it doesn't work at all with 4G network or LTE. Help me, please. Thank you in advance.
Imageview doesnt scale on Android Emulator
Hi, I'm working on an app in OSX and at the moment I have a very odd sizing issue in my code. I try to display an Imageview filling the whole width of the device's screen. But my the image resize and just the ImageView adapts to the given...
Problem displaying picture
Hi, I am programming an app where I want to display a picture in a scrollable view where the first view is the picture of the item with its name and there are three other views with data about the item. The problem I am facing is that the first view does...
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 =...
Showing large number of ImageView(s) in ScrollableView
Hi everyone, I need to make something like iOS default Photo app and I need to put a large number of photos to be shown in a ScrollableView. The problem is I need to store those images in array to be used by ScrollableView and the user may have few...
ImageView flipbook style animation - pause at pre-defined frame
Hi I have an imageView containing an array of images for a pie chart. Depending on a value I receive from an API, I want to animate the pie chart to the frame that represents this value. I thought it might be as simple as passing a parameter to the...
How to save rotated pictures
This one has me puzzled. I am writing an app that lets my users collect field data along with pictures. Pictures can be selected from existing photos in the gallery or by starting the camera from within my app. Since the pictures are large and will later...
java.lang.OutOfMemoryError: bitmap size exceeds VM budget
In my Application I have used lots of images on TableView Listing, So that I am getting `java.lang.OutOfMemoryError: bitmap size exceeds VM budget` also my application crashed in android emulator. Anyone help me to solve this issue
Image getting smaller with move animation
Hello world, (pun intended) For some reason, when I create an animation for my ImageView it gets smaller as it moves to it's position. I have never worked with animations before and I would consider myself a beginner. ~~~ var infopanel =...
Baffled. Saving rotated image
I started out thinking I had a camera related issue, but it turns out its a basic image question. I have an image loaded in an image view, I rotate it and then I want to save the image. I can see the image rotated on the screen but what gets saved is...
how to pass tableRow title from one tab to another based on ImageView
Hello.. I have an ImageView which act as a hasCheck property. Now, I want to pass the title of selected tableRows to the next tab. By selected tableRow I meant those which has ImageView. Any ideas how to pass this data across tabs.. ? Thank you
Image view won't load in scrollable view
I have a scrollable view which is supposed to contain an image view for each page. The image is from a remote url. But when i run it, only the last photo is shown. Here is my code: ~~~ for(var i = 0, j = landingData[0].bigImages.length; i<j;...
Share bitmap between different ImageViews
Is there a way to share bitmap between different ImageViews? In native android, it is possible to load a bitmap and then serve it for multiple images. Is this possible in titanium? e.g. I have 8 same icons. How can I make titanium share the same bitmap...
imageview can't load image from https url, WHY ?????????????
my code here ~~~ var leftimage = Ti.UI.createImageView({ top: 0, left: 0, width: 50, height: 50, borderRadius: 10, }); leftimage.image = http://mydomain.com/123.jpg ~~~ This work perfectly, but when I change http to https, I...
imageview with https URL not working
Hi, all I have a problem to let imageview use https url, but I got warning message like below and image not display in imageview ~~~ [WARN] : Unable to securely connect to MYDOMAIN.COM with the latest TLS. Trying again with TLS1.0. It is highly...
Android TableViewRow with className - images vanishes after scrolling!
Hi all, I have an app that uses tableViewRow, with an imageView (external URL) and text label - with a className. When it first load, the images appear fine but when I scroll down and then up again, the loaded images disappears?? I noticed if I remove...
Imageview setImages(array) with filesystem not working
Hi, I tried creating an animated imageview by using the kitchensink code, which works fine in alloy, however it doesn't work with the filesystem for me. Anyone know a solution to this? Kitchensink code ~~~ var images = []; for (var i=1;i<18;i++)...
Stop animation effect
Am making a "Syncing" animation effect. When the user press "Sync" the animation begins. If the user press "Cancel" the animation should stop, but that doesn't happen. Reading the Q&A and the Doc, calling the animation...
how to manage hasDetail and Image property in the same tableRow
Hello... I have hasDetail property on the right of the row and now I want to use image to act as a check marker when the certain row is clicked.. how is it possible.? because when I click a certain row an image is added but in a new row at the end of...
Strange issue with ImageViews in Android project
Hi everybody, in an Android project it happens a very strange thing: I add images to my project this way: ~~~ var logo = new commonImageView('/images/assets/logo.png', '85%', '14%'); self.add(logo); ~~~ CommonImageView is the following: ~~~ function...
imageView 100% width / auto width bug
For some reason, it looks like setting an imageView (with remote image) to 100% height and auto width is not working. I want the image to fill the height of the parent container. This container has deviceHeight, 100% of the screen. But I need the image to...
Save image to external storage and display on image view
Hi guys, I need help in saving file to external storage and display it. This is the code I'm working with: ~~~ function readRemoteImage(fileName,url){ var xhr = Titanium.Network.createHTTPClient({timeout:10000}); xhr.onload = function() { var f =...
Resizing an Image on a Toolbar with Alloy
Hi there- Is it possible to resize an image/ImageView placed on a Toolbar control? I am attempting to place an image as a logo centered on a Toolbar. For some reason, the image stretches to fill the toolbar, no matter how I set the width and height of...
ImageView Not stretching although I want it to.
Hi, I am adding this imageview: ~~~ var myImageView = Titanium.UI.createImageView({ top:95, bottom:60, left:20, right:20, zIndex:1000, }); myImageView.image = 'http://blablablabla'; ~~~ And I am expecting it to strech to fit the dimensions I am...
Difference of image view in iPhone and android
I've got a question to ask....I've got a image view with width = 300dp and height = 200dp. Now I got a portrait image. On iphone, the image doesn't stretch to fit the image view, it will show as it is. But on android, the portrait image will be stretched...
Remote images not showing up
I have an example image http://50.56.32.41/profile/p.png that I am trying to display in an ImageView, and if I open up safari on the iOS simulator it comes up, but when I try it ` var profilePic =...
Imageview with equal padding
I have been trying to no avail on both android and ios to create Fancy imageview. It is really nice with equal whitespace padding around the image and label+action buttons at the bottom. Does anyone has any idea how we can create such ui? I am attaching...
Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT to and from the same Window
A good example of this is in the iPod Music app on the iPhone. In the top right of the navigation bar when a song is playing you can toggle between the songs titles and the album cover. I'm not going for this exactly, but similar in that it is a back and...
Crop imageView
I was curious how I can crop an image. I searched Q&A without success. I have an image that I want to set to a certain width. When I set the width however, the image is being resized - the height is automatically adjusted as well. As such, even...
ImageView doesn't refresh after rewriting file
When displaying an image in an ImageView, then rewriting the image file on the disk and setting the image property of the image to the new file object, the ImageView does not refresh. I need this for displaying an image and letting the user replace it by...
Scaling an ImageView and maintaining aspect ratio
Hey all, As suggested in the title what I'm trying to do is take an image from the web that I know will be 200px wide but variable height, position it in the top left corner of my view, resize it to x pixels wide with the height being scaled whatever it...
imageview event 'load', image resize crash, in tabeleview on android
I am creating a table view, each row has images loaded on the left side (from a url). I set an event listener on the image view for 'load'. When it's loaded I use imagefactory to resize them to a decent size, then set the image view to use the new blob...
Resizing/Scaling images to view in 3.0.2 for iphone and android
I can't seem to reliably get my images to resize. I am getting images from the internet, so I can't just change the size of them. When I try to just set a height or width on the image view, sometimes i get the image scaled correctly, but the border...
Loading remote images is slow
I have done some apps (ios and android) with Titanium with a list of items and images, restaurants for example. Some of this apps have more than 500 items. The question is: I think Titanium loads remote images really slow. If I compare my apps with other...
Independt Click event for Imageview contained in Tableview which also has a click event
I have a tableview for which I have the 'click' event defined. In this I have rows and in one of the rows there is an image. I want to have a 'click' event for this imageview. However, when the click event of the imageview is fired, it also fires the click...
Android ImageView canScale property does not maintain boundary
Hi, I am trying to use the canScale property of ImageView in Android. The zooming action happens properly but the boundary of the image is not fixed. Consider the example code below: ~~~ var win = Titanium.UI.createWindow({ exitOnClose :...
Android imageView.toBlob - get image dimensions (regression bug?)
I am trying to get an images dimensions on an android. I've created a simple test script below. On an android (HTC Desire) clicking butt_1 'toBlob.size()' will return the correct dimensions when using Ti:2.1.5. However when switching to Ti:3.0.2GA or...
ImageView and animation images array
I've got an issue with the imageView and using the parameter images. On SDK 2.1.5 the following code works as expected, each image in the array is scaled to 75dp. On SDK 3.0.3/3.0.2.GA the view is scaled correctly but the images overflow the boundaries...
Crop image to display in image view in full resolution
I have an image that I want to display in an image view. The image view have a set width and height. The problem now is that when i set the image, I don't want it to shrink or stretch the image. I want a cropping of the image so that i can set it in the...