Im creating a gallery type app. I have the basics up and running where all the pictures is loaded from the phone and gets displayed in a gridview. I want each images in the gridview to have a border, probably a white so that they stand out a bit from the black background. I want to achieve something like this gridview that new Instagram uses, but maybe not so advanced with shadows around them. I have searched the net but I have not found anything.
Thanks!
Im creating a gallery type app. I have the basics up and running where
Share
Create an xml file named stroke.xml in drawable folder,
And set the background of your ImageView which you use in your GridView, to that xml file.
EDIT: If you want to see the orange or blue color when you click the GridView item, you would have to specify the properties of the ImageView as follows..
Here please take notes of the properties
That is what makes your item feel like its being clicked and its highlighted.
Also include this xml part in stroke.xml file
For better looking results…