I have a list of category(every category is a buttonilage) in my application, evrey category have a many product
i would like to get this product of one of this category when i press this category in the same interface
here's my code
the probleme here when i press one button it display here product and when i press another button, it display the previous product and the new product !!
Sarra Sakka wrote:I want to change it to the Gird View, it becomes easier right?
I am a beginner in android and this method it seems to be a little difficult at
Easier is a bit subjective. Using GridView makes the layout easier, because it handles that for you. It makes efficient display easier because it handles recycling views and what not. It generally makes data handling easier, because the data is separate from the display (using the Adapter as the go between). But it adds some layers of complexity - like using the Adapter, which you have to write yourself, and some interaction (example, you can't use Buttons in the GridView, they won't work without a bit of effort. But you can use ImageViews and let the GridView handle clicks.)
In the previous thread where I showed you how ListView and GridView worked, I also gave you some links to the API Guides on how to use them. I suggest you read that so you get a better understanding of how they work and choose if you want to go that route.