BoomMenu icon indicating copy to clipboard operation
BoomMenu copied to clipboard

how do you update the text/icon?

Open ohpoloha opened this issue 8 years ago • 1 comments

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.

ohpoloha avatar Jan 23 '18 20:01 ohpoloha

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

carsonskjerdal avatar Apr 26 '18 08:04 carsonskjerdal