[ Android ] How To Get Style Attribute from AttributeSet Programmatically Author Alex Date Февраль 16, 2016 Comments: Leave a comment int gravity=attrs.getAttributeIntValue("http://schemas.android.com/apk/res/android", "layout_gravity", -1);