Hey i\'m trying to build an app in which the user can input some numbers and these numbers will be shown in a gridview with custom grid view items. If i use the common gridview
Try this,
public View getView(int position, View convertView, ViewGroup parent) {
View v;
if(convertView == null) {
LayoutInflater li = getLayoutInflater();
v = li.inflate(R.layout.grid_item, null);
} else {
v = convertView;
}
TextView tv = (TextView)v.findViewById(R.id.grid_item_text);
tv.setText(items.get(position));
return v;
}