Hello everyone
My current problem is how to extract a text from a custom listview. Instead of extracting the text it extracts a numerical value but in String, an example the text is chocolate and instead of extracting chocolate it extracts 0 or it can be a bigger one. My point of view is that instead of extracting the text, it extracts the position, do not know if I am right?
And because I am referring to personalized custom: for the reason that my code returned the correct value or in a listview with an ordinary adapter not a custom one and when implementing the custom to show images give me this error.
My code
//Aqui almaceno el valor del texto en un String identificándolo por su posición
String listChoice = (gridview.getItemAtPosition (position)).toString();
Toast.makeText(Almacen.this, listChoice, Toast.LENGTH_SHORT).show();
If you know how to solve this problem or have knowledge of another way to achieve my goal. I will be happy to hear your ideas. Thanks