Android Developers Docs Reference com.google.android.material.button Annotations MaterialButton.IconGravity Positions the icon can be set to. Classes MaterialButton A convenience class for creating a new Material button. Annotations MaterialButton.IconGravity Classes MaterialButton Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates. Last updated October 12, 2018.