Android imitates the effect of keyboard pop-up when today’s headlines are commented (recommended)
•
Android
Android imitates the effect that the keyboard automatically pops up when today's headlines are commented: when you click the comment, a dialog box will pop up and a soft keyboard will pop up. When you click the return key, the dialog box will be closed, not just the soft keyboard.
design sketch:
Set a style effect on this dialog box:
And set dialog to listen for return key events. Otherwise, the soft keyboard is hidden by default:
After the above two steps, you can achieve the same effect as today's headlines.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码