Code example for GridView

Methods: invalidateViews

0
							public void onClick(DialogInterface dialog, int which) {
								// TODO Auto-generated method stub 
								Toast.makeText(getApplicationContext(), profs[which], Toast.LENGTH_SHORT).show();
								text += profs[which].toString();
								mThumbIds[pos] = text;
								gv.invalidateViews();
							} 
						}); 
		            	AlertDialog alert2 = builder2.create();
		            	alert2.show();
					} 
				}); 
            	AlertDialog alert = builder.create();
            	alert.show();
            } 
        }); 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java