android - CollapsingToolbarLayout: position the ExpandedText programmatically -
i using new android support design view collapsingtoolbarlayout. have need position expandedtitle programmatically.
actually way set position expandedtitle in .xml file (example here: https://goo.gl/l5h5fc) there no public api set text position programmatically , fields private.
do know if it's possible without reflection or 'hacky' tricks?
i have solved problem exposing properties via reflection (https://gist.github.com/fpezzato/8e7d45112883dbbc5ffb), works don't use trick in production code.
@google: please no more private or final stuff! :)
Comments
Post a Comment