I face this difficulty. In my case when i click on textview which is part of list-view’s custom XML file then the position is right, but when i click on the button which is the part of list-view’s custom XML file then it always gives first position. After i have to decided to perform automatic onItemClick and store all the values of clicked position into another declared variable which is below. See the image i used kotlin language instead of java. I stored all the map values into another variable which is declared above with public access specifier. [Now when i perform operation on Button click i…
-
-
https://www.youtube.com/watch?v=rEVWb_8XmLU Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap. To solve This Error You Have To Change Only Heap Size Which Is Define In Gradle.Properties file. You Have To Change The HeapSize To 1024m And Rebuild the Project, If The Error Is Not Solved Then You Have To Close The Project And Rebuild It.