Question

i want a default pixel size of image in this size should be adaptable for all type of screen size.Anyone can help me please, How to fix image in all type of mobile screen. it cant be stretched out. thanks in advance.

Was it helpful?

Solution 2

Sorry, You cannot have a Default size...

If you are developing a Mobile app, then you should detect the User's screen size and use an appropriate dimension of the picture there....

Have at least three different variations of the same picture for different screen sizes..

Android Has an inbuilt way of doing this Have a look at this : Supporting Different Screen Sizes

OTHER TIPS

There is no default pixel size.

You will either have to design images for each bucket you wish to support, or try and create a 9-patch for your images.

The Supporting Multiple Screens document has everything you need to having your UI scale nicely across devices.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top