attrs.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="HorizontalGridView">
<attr name="numRows" format="integer"/>
<attr name="gravity" format="integer"/>
<attr name="animationDuration" format="integer"/>
<attr name="spacing" format="dimension"/>
<attr name="unselectedAlpha" format="float"/>
</declare-styleable>
</resources>