简体   繁体   English

如何使任何视图增长,直到我按下 android 中的按钮。(kotlin 或 java 无关紧要)?

[英]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).好的 所以,我想要在我的 android 应用程序中使用一个功能,我想用动画放大文本,直到我按下按钮,一旦我离开按钮,文本大小应该设置为适当的长度(就像在 fb messenger 中一样按钮)。

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.它就像文本是 20dp,按下按钮后它是 30dp,但只要我按下按钮,我就希望它放大。

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android系统。 按钮看起来没有按下 - Android. Button doesn't look pressed 安卓。 在该按钮创建的操作完成之前,如何保持按钮显示为 PRESSED? - Android. How do I keep a button displayed as PRESSED until the action created by that button is finished? 具有ListView的Android视图不会增长 - Android View With ListView Doesn't Grow Android Studio:如何在java中获取自定义按钮(按下/未按下)的状态,就像我可以使用View.onTouchListener获取常规按钮一样 - Android Studio: how do I get the state of a custom button (Pressed/Not Pressed) in java like I can with View.onTouchListener for regular buttons Android系统。 在该按钮创建的操作完成之前,如何保持按钮显示为“按下”状态? 激活/选择不可用 - Android. How do I keep a button displayed as PRESSED until the action created by that button is finished? Activated/Selected not usable Android。 SetText 不会更改 Button 的文本 - Android. SetText doesn't change the text for Button 在用户按下或触摸之前,如何使搜索栏处于非活动状态? - how do i make a seekbar inactive till pressed or touched by the user? 按下时,Android按钮不变 - Android button doesn't change when pressed 当我在其中添加文本时,如何使android view动态增长? - how can i make an android view grow dynamically when i add text in it? 安卓 Mediaplayer停止播放时如何使视图可点击 - Android. How to make view clickable when mediaplayer stops playback
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM