How to change the Font Size in a whole Application programmatically, Android?

后端 未结 6 1455
迷失自我
迷失自我 2020-11-29 05:49

I have created Spinner with the list of Font Sizes from \"8\" to \"46\" . I could be able to click the font Size and in a spinner it has shown me .

My need is, if i

6条回答
  •  抹茶落季
    2020-11-29 06:24

    Create a function and pass the spinner size value as

    void setSize(int size){
    ...
    setTextSize()
    // on All of the layout texts and views on screen
    
    }
    

    Call setTextSize() on all of your views and layout texts on the screen.

    Check out the Documentations Here

提交回复
热议问题