久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Android IME:顯示一個(gè)自定義彈出對(duì)話框(如 Swype 鍵盤

Android IME: showing a custom pop-up dialog (like Swype keyboard) which can enter text into the TextView(Android IME:顯示一個(gè)自定義彈出對(duì)話框(如 Swype 鍵盤),可以在 TextView 中輸入文本) - IT屋-程序員軟件開發(fā)技術(shù)
本文介紹了Android IME:顯示一個(gè)自定義彈出對(duì)話框(如 Swype 鍵盤),可以在 TextView 中輸入文本的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我想知道如何創(chuàng)建一個(gè)自定義彈出窗口,如下面屏幕截圖中的那個(gè)(借自 Swype 鍵盤),其中我可以有幾個(gè)按鈕,每個(gè)按鈕都將一個(gè)字符串提交給當(dāng)前已連接"" TextView (通過 .你必須做一些黑客攻擊才能讓它做你想做的事情,唯一好的文檔就是源代碼.

I'm wondering how I can create a custom pop-up like the one in the screenshot below (borrowed from the Swype keyboard), where I can have a couple of buttons, which each commit a string to the currently "connected" TextView (via a InputConnection).

Please note: this is an InputMethodService and not an ordinary Activity. I already tried launching a separate Activity with Theme:Dialog. However, as soon as that one opens I lose my focus with the TextView and my keyboard disappears (and with that my InputConnection is gone).

解決方案

You can try using a PopupWindow. You'll have to do a bit of hacking to get it to do what you want and the only good documentation for it is the source.

這篇關(guān)于Android IME:顯示一個(gè)自定義彈出對(duì)話框(如 Swype 鍵盤),可以在 TextView 中輸入文本的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

EditText: Disable Paste/Replace menu pop-up on Text Selection Handler click event(EditText:禁用文本選擇處理程序單擊事件上的粘貼/替換菜單彈出)
Multiline EditText with Done SoftInput Action Label on 2.3(2.3 上帶有完成 SoftInput 操作標(biāo)簽的多行 EditText)
How to detect the swipe left or Right in Android?(如何在 Android 中檢測(cè)向左或向右滑動(dòng)?)
Prevent dialog dismissal on screen rotation in Android(防止在Android中的屏幕旋轉(zhuǎn)對(duì)話框解除)
How do I handle ImeOptions#39; done button click?(如何處理 ImeOptions 的完成按鈕點(diǎn)擊?)
How do you set EditText to only accept numeric values in Android?(您如何將 EditText 設(shè)置為僅接受 Android 中的數(shù)值?)
主站蜘蛛池模板: 日日干天天操 | 香蕉视频在线看 | 成人精品免费 | 欧美日韩免费一区二区三区 | 国产一级网站 | 一区二区三区精品视频 | 国产91精品看黄网站在线观看 | 欧美日韩一区在线 | 成人免费毛片入口 | 国产永久在线 | 麻豆一区二区三区 | 91亚洲成人| 成人免费视频国产免费麻豆 | 欧美综合网 | 国产在线不卡视频 | 蜜桃一区二区 | 国产精品毛片久久久久久久 | 欧美激情视频一区 | www.超碰在线 | 亚洲天堂网址 | 久久久亚洲精品视频 | 日本综合久久 | 黄色免费毛片 | 亚洲精品第一页 | 国产精品免费av | 天天久久| 亚洲天堂视频在线 | 天堂成人在线 | 久久免费看视频 | 中文字幕理伦片免费看 | 久久性生活视频 | 九九热精品| 欧美一区二 | 日韩欧美国产综合 | 91tv国产成人福利 | 亚洲国产成人av | 狠狠干免费视频 | 久久国产精品一区二区 | 日韩精品视频免费在线观看 | 色噜噜狠狠一区二区三区果冻 | 狠狠干在线视频 |