Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

layout already exists use a different qualifier

i'm trying to support screens size by create each layouts on Android Studio 3.1.3 i use the following steps to create one xml for example XXXHDPI :

Preview > Orientation for Preview > Create Other > Density and from Density i choose XXXHDPI ,the layout-xxxhdpi of my Activity will created.

but Android Studio 3.2 i can't do that when i try to create layout i get this message :

layout already exists use a different qualifier

enter image description here

like image 507
James-so Avatar asked Nov 18 '22 01:11

James-so


1 Answers

Make sure you are following these steps:

Right click on res folder=> New => Android Resource directory => Then a dialog appear => Resource type from dropdown => select layout => and from qualifier => click on density => >> => then your desired density

Or you can do(This will definitely work)

Create folder by yourself

right click on res=> show in explorer=> under res folder=> create a new folder=> rename it to => layout-xxxhdpi

like image 131
Suraj Vaishnav Avatar answered May 31 '23 23:05

Suraj Vaishnav