开发者

Android Floating EditBox

开发者 https://www.devze.com 2023-02-04 16:58 出处:网络
I have an OptionMenu which has single option in it named \"Search\". W开发者_运维百科hen the search option is clicked, it should dynamically add a EditText at the top of Activity window like it has in

I have an OptionMenu which has single option in it named "Search". W开发者_运维百科hen the search option is clicked, it should dynamically add a EditText at the top of Activity window like it has in WebView (browser address bar) so users could search something in my application.

After there would be EditBox, one can write inside it. I also want to have some OnTextChanged like event of that EditBox so do you think it's also available with that View?


I made it myself. I added an EditText on the screen with setting as hidden and on button click made it visible. It worked like a charm.

0

精彩评论

暂无评论...
验证码 换一张
取 消