Community Questions & Answers
WebView resize with Android Screen resolution
Hi, I created a webview and i want it to fit with all of the android screen and without scrolling so i used this code but not working: ~~~ var webview = Titanium.UI.createWebView({ url:'index.htm', scalesPageToFit:true, Width:'auto', ...
set the app compatible to iphone 5
Hello, i have a simple application. I would like to make it compatible to iPhone 5. So i set a special splash screen like everyone. * name : Default-568h@2x.png * resolution : 640 * 1136 When i launch it on the IOS simulator (6,1) it's ok. When i...
My Screens do not fit.
I think I must be missing something really basic with my screen sizing I am using dips for all my screen sizes. I have set my TiApp.xml so that the default size is dp rather than system ~~~ <property name="ti.ui.defaultunit"...
Getting the application to work on different resolutions
The app we have works on phones with older resolution, but does not work on the Google Nexus phone as its resolution is different Is there a way to handle this? The requirements is to support all resolutions We have already tried this in our manifest...
Short iPad/ iPhone image size guide
I only recently discovered you could add "@2x" to the end of image filenames to improve display on the iPhone 4, so I thought I'd share a short image guide for anyone who needs it. This may be old news to some of you, but just in case. Add extra...
Mater details template
So if the rumours are true then the new Samsung Galaxy S4 will be released with a screen resolution of 1080 x 1920. If this is the case then the code generated from the standard master-detail template that determines if the device is a phone or a tablet...
How to make android app to be compatible with all android devices??
Application type: mobile Titanium SDK: 3.0.0 Platform & version: Android 2.2 and above Device: Android emulator Host Operating System: Windows 7 Titanium Studio: version 3.0.1.201212181159-18122012120442 **I** **have** **developed** **an**...
How to retrieve the actual screen resolution (not platformWidth/platformHeight)
Hello, This may seem like an easy one. I want to know the amount of pixels available in each orientationmode. I want to know the available width in landscape, and the available height in portrait. First guess, of course is to think that you can get the...
Multi-resolution splash screen on Android
Someone can help me understand how I can change splash screen for Android in multiresolution? How I should set it to make it working both with landscape and portrait? How I should set it to make it working with different resolutions? Thanks!
Consistent Cross Platform UI
I know this has been answered somewhere but in two days of searching off and on and rewatching the training videos I still cannot figure it out. Basically I want my application to look basically the same on iOS and Android at all resolutions. By the same...
iphone5 screen resolution
hi, i have a problem about -568h@2x.png files. default-568h@2x.png file is working correctly. but i have some background images in app. there are 3 diffrerent resolutions of them. back.png, back@2x.png and back-568h@2x.png. in iphone 5, simulator opens...
Resolution, Kindle, Xperia, etc
Hey guys, I am developing an android app, and I was putting my images inside the resources folder, after I tried the apk in my kindle and my phone, the positions were all messed up, how does it work the resolution folders for android? Should I put on...
Image looks very bad in imageView after setImage()
Hi if I use setImage for an imageView, the image looks very bad.. I use this to replace the image in the imageView: ~~~ if( L('test'+(this.index+1)+'vraag'+(this.custom_item+1)+'afbeelding') == 'y' )...
Android resources, specific resolution support
Hey guys, I am developing an android app and i need specific resolution support. Does Titanium support resource folder name like "res-sw600dp" or "res-w800dp" ? This doesn't work on my device/emulator. Thanks
iPad simulator opening app as iPhone app
Hi all This is probably pretty basic stuff, but what setting makes the iPad simulator treat your app as an iPhone app? My app is for the iPad but when I launch it in the iPad simulator it shows up as an iPhone app (meaning it doesn't fill the screen but...
How to check if a tableviewrow is currently visible to the user?
Not the .visible value, but visible to the user within the scope of the screen. I am loading a bunch of images in a large tableview (one image per row), and I want to preroad low-res images first, and update the row that a user is currently viewing with a...
detect if device == WVGA800 or WXGA800 or .. etc
How can i detect this using code inside my app? I need to use different links for different foto resolutions (in some place where I download an image from web) so I need to know what resolution I want to use (and I would like to know BOTH ways, one for...
static dimension explanation
Hi, I started porting my apps from iOS to android lately and I am having problems understanding some basics about resolutions, ppi, actual sizes, etc.. For example, when I create a view with top:10, left:10, right:10 and height:ti.ui.size and add it...
App doesn't fill full screen on iPhone5 simulator
I am busy preparing my app for release and testing it on iOS6 with Ti SDK 2.1.3 RC on the iPhone 5 simulator (iPhone 6.0 Simulator Retina 4-inch). I have noticed that the app does not fill the whole screen. It centres the app in it's iPhone4 resolution so...
dpi and images
Hey all, i'd like to get a *full* understanding of dpi and images. I notice that titanium has folders - hdpi, ldpi etc etc, and i'd like to know: what is the point of this? When i make an image - say, an all white background - does it matter what...
xlargeScreens - can't get it to run on Android
Hi, I'm trying to publish an app to the Android market. The app supports multiple Android screens but whenever I'm trying to enable 'xlargeScreens' on the tiapp.xml, the app never starts. When I remove the xlargeScreens line everything works fine. This...
resolution image iphone 5
Hello, I have a little trouble with the automatic detection of images, in my case I placed three images: - "fond.png" - "fond@2x.png" - "fond-568@2x.png" When I run my app in the simulator iphone 5 image taken by default is...
Android Emulator Screen resolution
Hi all, I'm developing a app for Android, the emulator was running in QVGA yesterday. After the night, nothing changed, but starting the emulator in QVGA, will start it in a small skin, but with a HVGA resolution. The run commando for the emulator...
Dealing with different android densities
So I've been using this code for a while (Two text fields and a login button) ~~~ var username = Ti.UI.createTextField({ color:'#336699', top:130, width:'95%', height:40 }); win.add(username); var password =...
Handling with different resolutions
I'm trying to handle with different screens resolutions, but im not being able to. I've finished my app, but when i tested in differents smartphones it didnt fit well. How I work with the position and the size of the components? And how I work with the...
Multiple Density Layouts
I am trying to understand how to layout my apps so they work on iOS and Android properly. I thought that the baseline width and height was 320x480. And if I setup my views like this: ~~~ var testView = Ti.UI.createView({ bottom: '0dp', width:...
Android image resolution folders
The docs say to create high/med/low directories within the PROJECT/Resources/android/images folder. I just created a new Titanium project using the 1.6 branch of the SDK and I got these folders: ~~~ res-long-land-hdpi...
iPhone resolution
Is the resolution on iPhone 4 not 640 * 960 ? Ti reports 320 * 480
Problems using a folder structure for icons in different resolution which works on Android without duplication
I am having problems getting icons to work using the following folder structure Under the folder: Resources->android->images Each icon folder is placed under one of the following 3 folders - res-hdpi - res-mdpi - res-ldpi All splash and...
Android Image Resolutions
According to the information on [this](https://wiki.appcelerator.org/display/guides/Using+density-specific+resources+on+Android) page, we are going to develop our app using the low/medium/high configuration. My question is though, what are the...
Difference in DPI calculations between iPhone and iPad
I have been using the DPI units for all my layout positioning to keep my apps consistent across devices. I have taken the conversion function from a [previous...
UI Designing Resolution
Hi I am new to Designing the UIs and images for Apps.. Please someone guide me about the resolution for different screens, images and Icons sizes for different screens... Please give me a list of resolution and pixels required for different screens and...
Android image folders
I have a background image for the main/home screen. In developing for Android's multiple resolutions and densities, I'm trying to take advantage of Titanium's density-specific folders with no...
Best Practice for developing for screen sizes across multiple platforms
Hi, brand new to Appcelerator and looking at developing a basic app to be deployed on iOS, Android and Blackberry OS - however, I'm wondering how best to handle the various screen sizes and densities. Is this likely to be a complex issue and are there any...
ScreenShot in Retina Sizes
Hi all, I am trying to take a screen shot of my current screen.I have the screenshot working well, and it saves off as required. The problem is that when i take the saved image is in the size of the window resolution (ex.320X480). How to save in retina...
Android Emulator Support
Hi Team, i need create an android app for following size of screens: ~~~ 480x700 - T-Mobile MyTouch 4G Slide, Samsung Epic Touch 4G, Samsung Galaxy S II 540x960 - HTC One, Series Motorola DROID RAZR MAXX, HTC EVO 3D 720x1280 - Samsung GALAXY Nexus, HTC...
resolution..?
Hi, When designing an app for iPhone (3&4), how do you deal with the different resolutions (640x480 vs 960x640)? For example if I want to create a background for a window, what resolution do I set for this background? Thanks, Idan
Android and different screen resolutions (texts and positioning)
Hi, I'm developing both Android and iPhone app. When I run the app in the emulators (both iPhone and Android) they look fine. Objects are positioned where I need them and text size looks as I want. However, when I run the app on my Samsung Galaxy the text...
[Beginner] View/Image position/size by screen resolution
Hi, (sorry for the english, i am french) i just have a little question about the positioning for my app. I want to place a view at 10px of the top of the screen. For an iPhone 3/3G/3GS, i will write : top:10, right ? But, how i have to manage this for the...
ImageView with image grainy :(
I'm developing an app for iPhone. Summerizing (because it's not exactly so) I have an image taken dinamically from internet that has size of 300x300 pixels. I put this image into an ImageView that has size of 60x60 dp. When I test the app on my iPhone 4...
Android Density question
My app design looked fine on the HVGA emulator then when I installed it on my HTC Desire (WVGA) everything was tiny. Looking at another app I changed the tiap.xml to add this. ~~~ <android...
Splash Screen Multiple Sizes
I have developed an app for Android and I have included a Default.png with resolution 480*854. now this works for a number of devices, but is there a way to include multiple splash screens so that the splash image is not distorted on multiple devices?
Development for new iPad 3
Which screen resolution should when developing for the new ipad 3: 2048x1536? Should those images take the @2x suffix (in the same way than the iPhone3 vs iphone4 retina)? Is this supported in the current version of Appcelerator?
resolution and layout
hello, how to make a good app (android/ios) witch appear in the same mode in different resolution? it's better use webview? a function to manage the size and dpi? i'm confused... thank's
Fastdev - Images not showing
Hi everyone, I'm running into this weird issue. I've images of different resolutions in each of the "res-" android images folders. They don't show up in my app while in fastdev mode. When I switch fastdev off and compile the app, it works...
Pixels, resolution, DPI, Density cross platform for iPhone and Android
First off I am not much of a graphics guy. I am trying to make my app work on both Android and iPhone and look more or less the same. I have been trying to figure out what best to use for Left/Right/Top/Bottom properties between pixels like left:40 or what...
Porting Ti IOS app to Android (UI strategy)
Hi, I have made an iPhone app with Ti Mobile. Now I would like to port it to Android. The app was made taking in account the 320x480 theorical display capability (icluding retina display) of the iPhone. In Android it's another story, there is a lot of...
Android Density folders error with tab icons using Titanium SDK 1.8
Hi, I'm developing a app for iPhone and Android and have had issues using the different density folders with the 1.8 SDK. The images aren't copied to the build -> android -> images folder. I've had tried using both the high/medium/low folder...
android: resolution specific jss files in SDK 1.8.0.1 and 1.9.0
Hello All! Has anybody managed to use resolution specific jss files with SDK 1.8.0.1 and/or 1.9.0? I've tried a few combinations whithout...
"Galaxy tab addon android 2.2"
Hi, I'm testing my app across several Android resolutions. When choosing the "Galaxy tab addon android 2.2" option from the "Run Configurations" I get the galaxy tab emulator which supposed to have a resolution of 1024x600 (according...
Showing 1-50 of 71 1 2