Como implementar o DrawerArrowToggle da biblioteca Android appcompat v7 21
Então agora que o Android 5.0 foi lançado, eu queria saber como implementar os ícones animados da barra de ação.
Esta bibliotecaaqui implementa-o bem para mim, mas como a biblioteca appcompat v7 possui, como ela pode ser implementada?
A biblioteca referencia-o em themes.xml
<item name="drawerArrowStyle">@style/Widget.AppCompat.DrawerArrowToggle</item>
Sob esse estilo
<style name="Base.V7.Theme.AppCompat" parent="Platform.AppCompat">
ATUALIZAR
Eu consegui isso implementado usando o v7 DrawerToggle. No entanto, não posso estilizá-lo. Por favor ajude
Encontrei o estilo para ele na v7 styles_base.xml
<style name="Base.Widget.AppCompat.DrawerArrowToggle" parent="">
<item name="color">?android:attr/textColorSecondary</item>
<item name="thickness">2dp</item>
<item name="barSize">18dp</item>
<item name="gapBetweenBars">3dp</item>
<item name="topBottomBarArrowSize">11.31dp</item>
<item name="middleBarArrowSize">16dp</item>
<item name="drawableSize">24dp</item>
<item name="spinBars">true</item>
</style>
Eu adicionei isso aos meus estilos e não funcionou. Também adicionado ao meu attr.xml
<declare-styleable name="DrawerArrowToggle">
<!-- The drawing color for the bars -->
<attr name="color" format="color"/>
<!-- Whether bars should rotate or not during transition -->
<attr name="spinBars" format="boolean"/>
<!-- The total size of the drawable -->
<attr name="drawableSize" format="dimension"/>
<!-- The max gap between the bars when they are parallel to each other -->
<attr name="gapBetweenBars" format="dimension"/>
<!-- The size of the top and bottom bars when they merge to the middle bar to form an arrow -->
<attr name="topBottomBarArrowSize" format="dimension"/>
<!-- The size of the middle bar when top and bottom bars merge into middle bar to form an arrow -->
<attr name="middleBarArrowSize" format="dimension"/>
<!-- The size of the bars when they are parallel to each other -->
<attr name="barSize" format="dimension"/>
<!-- The thickness (stroke size) for the bar paint -->
<attr name="thickness" format="dimension"/>
</declare-styleable>
Mas trava e diz erro de tipo de cor ao fazer isso. O que estou perdendo?