How can I declare TextView as global variable to use in other class

前端 未结 4 1927
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-16 05:45

I am a new android dev. I want to use a same TextView in all activity. But, i don\'t know how to declare TextView as global Variable & How can i use thi

4条回答
  •  盖世英雄少女心
    2021-01-16 06:14

    I think this Link this is helpfull to

    http://alinberce.wordpress.com/2012/02/20/android-edittext-with-custom-font-and-clear-button/

    you have to create Editbox just One time & use anywhere in Application

    weather use in Layout file or use Dynamically in java Class

提交回复
热议问题