Created class ItemMain . Its constructor accepts a String'овую variable.
I add an instance of the class to ListView:
lists.add(new ItemMain(R.string.Home)); The error that R.string.Home is an integer type appears.
Tell me, how can you do it differently?