How can i show and hide some imagebuttons inside a row of a listview on listactivity? Ive some list of packages and want show buttons like install and uninstall. But when a package is installed only uninstall button is showed. If click uninstall, i want to hide uninstall button and show install button. i reference every row in a loop like this:
v = vi.getAdapter().getView(i, null, null);
and reference button like this
ImageButton ib = (ImageButton)v.findViewById(R.id.descargar);
ib.setVisibility(View.VISIBLE);
nothing happened. Any suggestions?Thanks.