How to create a fully animated android menu

0

The tumblr application has a menu that when pressing each item / button it turns white and presses another round the original color. Does anyone know the name of this process telling the user that that button was clicked?

    
asked by anonymous 09.05.2016 / 06:59

1 answer

1

You can use the 'setColorFilter' in the icon's click action. See the example:

 img1.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        img1.setColorFilter(0xff00aa00, PorterDuff.Mode.MULTIPLY);
        img2.clearColorFilter();
        img3.clearColorFilter();
    }
});

I put the onclick as an example, in the case of the menu, you use colorFilter in the menu action ...

    
09.05.2016 / 14:18