BoomMenu
BoomMenu copied to clipboard
how do you update the text/icon?
I tried to setup bmb on page loads and it worked.
the problem I have is after a while, depending on user interaction, I might need to update the text/icon in bmb. I've tried to call clearBuilders() then addBuilder to create a new set but it UI doesn't change.
So far this is what I have, appears a text modifier needs to be added..
for (int i = 0; i < 4; i++) {
BoomButtonBuilder builder2 = bmb.getBuilder(i);
if (builder2 != null){
Log.e("Boom Button", "Builder is good");
}
if (builder2 != null) {
switch (i) {
case 0: {
builder2.normalColor(Color.BLUE);
builder2.normalImageRes(R.drawable.canoeicon);
}
case 1: {
builder2.normalColor(Color.BLUE);
builder2.normalImageRes(R.drawable.canoeicon);
}
case 2: {
builder2.normalColor(Color.BLUE);
builder2.normalImageRes(R.drawable.canoeicon);
}
case 3: {
builder2.normalColor(Color.BLUE);
builder2.normalImageRes(R.drawable.canoeicon);
}
}
} else {
Log.e("Builder", "Builder is null");
}
}
The issue seems the builder command needs to access the text edit. Grr