I am converting an old project from an Activity based application, (five activities), to a B4XPages Project.
In one of the Activities, I had five buttons, defined in the designer, with a "StateListDrawable" attribute.
When running the application, if I changed the State of any of these buttons in code from, say, Enabled to Disabled, the background would change to the background appropriate to the selected state.
However, this is not the case in the B44XPages project.
When I change the state, the state does indeed change, but the background does not reflect the changed state.
If I change the initial state in the designer, then the buttons background does show the correct background for the selected state, but, again. not when I change the state in Code.
What am I missing?
In one of the Activities, I had five buttons, defined in the designer, with a "StateListDrawable" attribute.
When running the application, if I changed the State of any of these buttons in code from, say, Enabled to Disabled, the background would change to the background appropriate to the selected state.
However, this is not the case in the B44XPages project.
When I change the state, the state does indeed change, but the background does not reflect the changed state.
If I change the initial state in the designer, then the buttons background does show the correct background for the selected state, but, again. not when I change the state in Code.
What am I missing?