I have activity and a lot of widgets on it, some of them have animations and because of the animations some of the widgets are moving (translating) one over another. For exa
You can use BindingAdapter like this:
@BindingAdapter("bringToFront") public static void bringToFront(View view, Boolean flag) { if (flag) { view.bringToFront(); } }