[英]Android app - Show another activity in small window when pressing the button
I'm new developer in android ...and programming with intellij . 我是android的新开发人员...并使用intellij进行编程。
How i can show another activty when i pressing the button and close it when i release my finger of button ? 当我按下按钮并释放手指时如何显示其他活动? Similar to samsung keyboard that when we pressing the key show the larger version of that above it ? 类似于三星键盘,当我们按下键时,它会在上方显示较大的版本吗?
I'm really need to know it .. thanks for your helps . 我真的很需要知道..谢谢您的帮助。
Though this is not a proper answer of your question but this may help you because it helped me. 尽管这不是您问题的正确答案,但这可能会对您有所帮助,因为它帮助了我。
You can use a popup window or something like this instead of activity. 您可以使用弹出窗口或类似的方法来代替活动。 Android PopupWindow with Tooltip Arrow 带有工具提示箭头的Android PopupWindow
If you do then follow this. 如果您这样做,请按照下列步骤操作。 "Press and hold" button on Android needs to change states (custom XML selector) using onTouchListener Android上的“按住”按钮需要使用onTouchListener更改状态(自定义XML选择器)
Thanks 谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.