简体   繁体   中英

How to make any view grow till I have pressed the button in android.( kotlin or java doesn't matter )?

Okay So, I want a feature in my android application where I want to enlarge the text with animation till I have pressed the button and as soon as I leave the button the text size should set to that appropriate length(like in fb messenger like button).

Right now my application is doing is that whenever I am pressing the button it is enlarging to only one particular size with animation. Its like the text is 20dp and after button press it is 30dp but I want it to enlarge as long as I have pressed the button.

使用 while 循环并保持文本大小增加 10dp,直到它被按下。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM