0

I have the following gridview with 8 imageview .

enter image description here

I want to delete one of the imageview . Then the gridview should be like the following :

enter image description here

How can I do this ? Any suggestion will be of great help .

1
  • 2
    a GridView is a android.widget.AdapterView so delete the data from your adapter and call notifyDataSetChanged Commented Oct 25, 2015 at 9:46

1 Answer 1

1

From your screenshots I can understand that GridView is populated with data by using adapter, and your requirement is to remove History ImageView.

Most probably it will be one of the Collections(List/Set) or may be an Array

from the Collections remove the value with index 4 (position of History ImageView)

and finally notify your adapter that GridView values are changed. you can achieve this by using adapter.notifyDataSetChanged() method.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.