center spinner text

  1. vascofire

    Android Code Snippet Center Align Spinner Text: 95% perfect workaround

    So far it's known that we can't center align a spinner text. What I'm sharing now is a workaround that doesn't a perfect alignment but at least minimises the problem. The trick is changing the spinner left padding based on the item(text) width. The text is measured using Canvas. X is the item...