OG_OTT
7 years agoVisitor
ButtonGroup and focusBitmapUri not working
It appears that setting focusBitmapUri and focusFootprintBitmapUri do nothing at the ButtonGroup level. Additionally, setting showFocusFootprint at the buttonGroup level also does nothing. If I set this on the button level it 'kinda works' by showing the focusBitmap that I have, but it won't show the footprintBitmap or show the focusFootprint. If I take the buttons out of the group it does work.
Here is my XML:
Question: What am I doing wrong with the buttonGroup? My expectation was to have a bunch of buttons in a buttonGroup that I could globally set these styling attributes on the group level and have it apply to the children, but it appears not really work, despite the documentation (unless I missed something). https://sdkdocs.roku.com/display/sdkdoc/ButtonGroup
Thank you in advance.
Here is my XML:
<?xml version="1.0" encoding="utf-8" ?>
<component name="loginScreen" extends="Group">
<script type="text/brightscript" uri="pkg:/components/screens/login/login.brs" />
<script type="text/brightscript" uri="pkg:/components/enums/fonts.brs" />
<interface>
<field id="loginScreenReadyToLoad" type="bool" />
</interface>
<children>
<Poster id="loginBackground" translation="[0,0]" />
<Poster id="loginRandomWeatherImage" translation="[0,0]" />
<ButtonGroup id="loginButtonGroup" translation="[600, 300]" focusBitmapUri="pkg:/assets/images/buttonSelected.9.png" focusFootprintBitmapUri="pkg:/assets/images/button.9.png" focusedIconUri="" iconUri="" showFocusFootprint="True">
<Button id="LoginBtn" translation="[200,200]" text="Log-in" focusedIconUri="" iconUri="" showFocusFootprint="True"/>
<Button id="EULABtn" translation="[200,200]" text="EULA" focusedIconUri="" iconUri="" showFocusFootprint="True"/>
</ButtonGroup>
</children>
</component>
<!-- focusBitmapUri="pkg:/assets/images/buttonSelected.9.png" focusFootprintBitmapUri="pkg:/assets/images/button.9.png" -->
Question: What am I doing wrong with the buttonGroup? My expectation was to have a bunch of buttons in a buttonGroup that I could globally set these styling attributes on the group level and have it apply to the children, but it appears not really work, despite the documentation (unless I missed something). https://sdkdocs.roku.com/display/sdkdoc/ButtonGroup
Thank you in advance.