Android Question AutoTextSizeLabel for buttons?

Discussion in 'Android Questions' started by Massy, Mar 29, 2015.

  1. Massy

    Massy Member Licensed User

    I find AutoTextSizeLabel very useful... I am wondering... is there something similar for buttons? Or, how could I have different textsize on buttons according to the size of the button and the resolution of the device?
    Thanks for any help
  2. Erel

    Erel Administrator Staff Member Licensed User

    See how AutoTextSizeLabel is implemented. It shouldn't be difficult to take setText and CheckSize subs out of this class and use them with a button.
    koaunglay and Massy like this.
  3. tremara1

    tremara1 Active Member Licensed User

    I have been playing around with designer scripts and was looking at how to keep the text size relative to a view resize. I got hold of Erel's AutoTextSizeLabel and created a small class from it. I have tested it and it seems to work. I have added a variable resize amount. You are welcome to use it if you want. the link is
    There is a small example, it is far from perfect but might help...
    Massy likes this.
  4. Massy

    Massy Member Licensed User

    Thanks to both!
  5. Rusty

    Rusty Well-Known Member Licensed User

    Your linke to Dropbox isn't valid any longer, can you send code?
  6. Roger Daley

    Roger Daley Well-Known Member Licensed User

    Perhaps you could post in Code Snippets. It sounds useful.

    Regards Roger
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice