Create util methods to get attribute from style.
am: 48fb148bf0

Change-Id: I93ae37f27c8f2a8ad36ddf904802f024ce731bad