The Run group is rendered asynchronously inside the actionbar, and the observer only watched the actionbar's direct children, so the button stayed at the end once Run appeared. Observe the subtree and re-anchor when the button is not right after the Run group.