custom border frame for GalleryView
I have created t开发者_StackOverflowhe Gallery view. but i want the border around the currently selected Gallery item can you anyone help me for this
Thanks Raj.
Create a border/frame background something like this, use 9-patch tool for the same and then set this as the background of GalleryView or GridView item.
Create a an xml file in drawable folder like below
gallery_back.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_focused="true"
android:state_enabled="true"
android:drawable="@drawable/btn_sendemail_roll" />
</selector>
Now set this gallery_back.xml as background of your gallery item. thats all
精彩评论