Forum Discussion
speechles
7 years agoRoku Guru
<ButtonGroup
id="loginButtonGroup"
focusBitmapUri="pkg:/assets/images/buttonSelected.9.png"
focusFootprintBitmapUri="pkg:/assets/images/button.9.png"
translation="[600, 300]"
/>
This is almost all you need. You don't need focusFootprintBitmapUri at all. The effect it provides isn't likely a desired one for what you are doing it serves no purpose. focusFootprintBitmapUri="" that is what you want for the footprint. You don't want one. You don't want the default. You just tell it nothing it renders nothing for it.
The ones you want to change for focus and unfocused are the text and icon.
textFont / focusedTextFont
textColor / focusedTextColor
iconUri / focusedIconUri
Make sure textFont and focusedTextFont are set to exactly the same thing unless you like the flashing. No one does. Set it the same. Do the same with textColor and focusedTextColor set them the same.
Make sure IconUri and focusedIconUri are set to exactly the same thing unless you want flashing icons or some other reason. usually set these two the same as well.
Use the focusBitmapUri to use with a 9 patch to create your focus indicator. This will be whatever color/style you want to be the background focus for your button.
id="loginButtonGroup"
focusBitmapUri="pkg:/assets/images/buttonSelected.9.png"
focusFootprintBitmapUri="pkg:/assets/images/button.9.png"
translation="[600, 300]"
/>
This is almost all you need. You don't need focusFootprintBitmapUri at all. The effect it provides isn't likely a desired one for what you are doing it serves no purpose. focusFootprintBitmapUri="" that is what you want for the footprint. You don't want one. You don't want the default. You just tell it nothing it renders nothing for it.
The ones you want to change for focus and unfocused are the text and icon.
textFont / focusedTextFont
textColor / focusedTextColor
iconUri / focusedIconUri
Make sure textFont and focusedTextFont are set to exactly the same thing unless you like the flashing. No one does. Set it the same. Do the same with textColor and focusedTextColor set them the same.
Make sure IconUri and focusedIconUri are set to exactly the same thing unless you want flashing icons or some other reason. usually set these two the same as well.
Use the focusBitmapUri to use with a 9 patch to create your focus indicator. This will be whatever color/style you want to be the background focus for your button.