I have a Gridview and I populate it with a custom adapter that extends BaseAdapter
.
public class ImageAdapter extends BaseAdapter {
...
}
and I have these methods overridden to disable couple of the tiles
@Override
public boolean areAllItemsEnabled() {
return false;
}
@Override
public boolean isEnabled(int position) {
if (position == 1 || position == 2) {
return false;
}
else
{
return true;
}
}
so it disables the click on tiles in position 1 and 2.
Now, I'm fairly new to android development and I was wondering what a good way is to make the tiles greyed out. Can I specify style xml specific to disabled tiles?