Juraj Kostal
Juraj Kostal

Reputation: 11

xamarin.android - support different screen size with dimens files

I created dimens files for 320dp, 360dp and 480dp screen sizes in values folder.

Values Folder

However when I use values from dimens in my project, It would always take values from dimens-sw480dp. I tested it on 320dp and 360dp width screen devices.

I also tried changing files names...dimens-sw480dp.xml to dimens-sw480.xml but nothing changed.

Upvotes: 0

Views: 287

Answers (1)

Juraj Kostal
Juraj Kostal

Reputation: 11

So I had to create values directory for every screen resolution.

Image

Upvotes: 1

Related Questions