gridview - Create Custom Grid View to show selected image in android -


i working on grid view, in need click , select image showing small image on it. can see in image attached, green mark on images shows selected. not possible normal grid view. have tried this.

please suggest me.

enter image description here

guys google have done solve problem so, got use actionmode in activity , fill gridview.

http://developer.android.com/guide/topics/ui/menus.html#context-menu

so when entering actionmode set gridview object in choicemode-> multiple.

in code:

gridview gv=new gridview(this) or this.findviewbyid(r.id.ma_grid_view); gridadapter adapter... gv.setadapter(adapter) beginactionmode(); // might used long press or button tam in action bar...  public void beginactionmode(){     gv.setchoicemode(listview.choice_mode_multiple); } 

kinda this, read article i'v send spend houres , you'll reach it... thanks.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -