Android Question Can gravity be changed or set for remoteview label

Bryan

Member
Licensed User
I am changing the contents of a label displayed for a widget. Text size is being automatically changed depending on the number of characters displayed in the label. So all the text is displayed in a single line. The problem is my text will not be centered horizontally or vertically when the text is scaled to fit in the label. Initially it is, but as soon as the text size changes I lose the gravity settings that were set in designer for the label. Is there a way to set gravity after text size has changed? Help is always appreciated.

Thankyou
 
Top