added onSizeChanged() in Button/TextView to make sure the LinearGradient will be reset
remove onAttachedToWindow()
Merge pull request #8 from Keanu/develop

added onSizeChanged() in Button/TextView to make sure the LinearGradient will be reset