Material Button with icon on the right

Benjamin Ledet picture Benjamin Ledet · Jun 11, 2018 · Viewed 12.4k times · Source

The new material button from Google is really nice.
According to the documentation, we can set an icon who's shown by default on the left. Does anyone knows how to set it on the right? I can't find anything about this.

Answer

Anna picture Anna · Dec 9, 2018

I googled today the same problem and found this: android:layoutDirection="rtl". It works in my test project.