0

i have this layout inside a folder menu< xxx.xml

How suppose i call it in java? setContentView(R.layout.xxx.xml);(i got error)

i already trying add the path to the gradle but without success

a_local_nobody
  • 7,947
  • 5
  • 29
  • 51
Drakan x
  • 25
  • 1
  • 4

1 Answers1

0

You're calling the wrong the folder. You need to move the xxx.xml to the layout folder

As the following:

R.layout.xmlfile -> res/layout/xmlfile.xml
R.menu.xmlfile  -> res/menu/xmlfile.xml
Hayssam Soussi
  • 903
  • 7
  • 16