I need to insert an image at the bottom of the screen. This image must always remain at the bottom dynamically on all devices. How can I do? I for now I wrote this code:
var footer = Ti.UI.createImageView({ image: '/footer_iphone_home.png', width: widthDevice, left: 0, bottom: "4.9%", zIndex: 999 });
It works, but is very complex because I have to calculate the exact percentage. Is there an easier way?
Hello and thank you
3 Answers
Why not simply set it to bottom: 0.
That way, you'll be sure it will absolutely at the bottom.
It sounds like you need to use density-specific pixels:
bottom:'10dp'
@Christian, @Shannon: I used "0" and "0dp", but the image appears at the bottom I cut in half. Perhaps the problem is that this image is also resized.
Thank's for answer
Your Answer
Think you can help? Login to answer this question!