NandhiniKumar
NandhiniKumar

Reputation: 3

Pixel size of images

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.

Upvotes: 0

Views: 445

Answers (2)

Ashrith Sheshan
Ashrith Sheshan

Reputation: 662

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

Upvotes: 0

Raghav Sood
Raghav Sood

Reputation: 82583

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.

Upvotes: 1

Related Questions