Community Questions & Answers

alloy imageView with remote image not work

var advImage = Ti.UI.createImageView({ width: '100%', height: 40, image: 'www.example.com/ab.jpg' }); i cant use remote image url in imageView anymore. it worked on older titanium sdk but not with alloy. any tips please?

Remote images @3x - ios8/iphone6+

What's the recommended approach for dealing with remote hires images. i currently have images on s3 i pull into my app at runtime (@2x size), i use the hires flag on imageview. Will the hires flag work the same for @3x, assuming I put the @3x size in my...

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 gallery

Application type:Mobile,OS:Mac OSX 10.9.3,Platform:Android and ios,Titanium studio:3.3,Device:Emulator,Titanium sdk:3.3 How to have photo gallery.I am displaying the images as thumbnails using scroll view.If the click on the image the image should enlarge...

Images not always appearing on iOS

My app shows a series of images on different screens. What I'm seeing is a very odd behavior where on each build a few of the images don't show up (the broken image shows up) on the device. It's not consistent from build to build. Also, on the simulator...

JSON byte array to image

Hi All, I'm trying to convert byte[] into image. The byte[] comes from JSON (web service). I am trying this way ~~~ var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'image.png'); // Save...

Photo height and width rendering issues on IOS

I have an app that displays 6 photos per page from my website. I can't figure out a way to displays all of the photos correctly. Usually one or more photo is not sized properly, it's the correct width but its bottom has been cropped. My guess is that...

Getting images to fit inside view

I have a view that has been sized and shows up fine on all devices. Inside that view I need to show 4 images horizontally. It's the same image used on all devices and I was hoping they would be scaled to fit inside the view. This is working on Android...

Button with background image vs. imageview

I have some custom button images for my application. It seems like I can implement them as either buttons with a background image or as imageviews. I can't find many noticeable differences that would make one a better option than the other. From what I...

Fit image

Hi guys! How do I fit any image on any resolution device? I tried to use width 100% in imageview, but was larger than the screen. my code: ~~~ function Image(){ WindoOptions = { fullscreen : true, modal : false, navBarHidden : true }; var win =...

Right, left on imageView does nothing

I'm running Titanium Studio 3.3.0 on OS X and testing on Android 4.4.2 on a Nexus 5. I'm trying to get a next and back button to align left and right but they keep becoming centered. The relevant code is ~~~ var window = Titanium.UI.currentWindow; var...

Swipe gesture won't swipe container off

// this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); // // create base UI tab and root window // var win1 = Titanium.UI.createWindow({ title : 'Tab 1', ...

ImageView in TableView Crashes app

Hi, I'm using Alloy XML to create a table view with Items, each has a remote URL image. When I scroll the table view the app crashes. The table is binded to collection and each item has it's own ImageView. When I remove the ImageView the app works...

Does ImageView support GIF file?

Does ImageView support GIF file?I mean,a single *.gif file that seems a moving animation,but not a image array. I want load a single gif file downloaded from web,but it seems does not MOVE. many thanks!

Showing 1-50 of 1,130 1 2 3 4 5 623