I am creating an android application in which I am using table layout in the java file. I had given the reference of the xml file, but it is showing the context mismatch error. I am posting the code of the error line. Can any one help me on that topic?
TableRow rw1=new TableRow(R.id.tableRow3);
If you are referring
TableRowid by xml layout file then,It should be,Or if its just a java file’s new view, Then it must be,