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

    1. <tfoot id='12M9u'></tfoot>

      <small id='12M9u'></small><noframes id='12M9u'>

    2. <i id='12M9u'><tr id='12M9u'><dt id='12M9u'><q id='12M9u'><span id='12M9u'><b id='12M9u'><form id='12M9u'><ins id='12M9u'></ins><ul id='12M9u'></ul><sub id='12M9u'></sub></form><legend id='12M9u'></legend><bdo id='12M9u'><pre id='12M9u'><center id='12M9u'></center></pre></bdo></b><th id='12M9u'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='12M9u'><tfoot id='12M9u'></tfoot><dl id='12M9u'><fieldset id='12M9u'></fieldset></dl></div>

      <legend id='12M9u'><style id='12M9u'><dir id='12M9u'><q id='12M9u'></q></dir></style></legend>

        <bdo id='12M9u'></bdo><ul id='12M9u'></ul>

      如何在不觸發 Text Watcher 的情況下更改 EditText 文

      How can I change the EditText text without triggering the Text Watcher?(如何在不觸發 Text Watcher 的情況下更改 EditText 文本?)

            <tbody id='m2LgF'></tbody>
          • <bdo id='m2LgF'></bdo><ul id='m2LgF'></ul>
          • <legend id='m2LgF'><style id='m2LgF'><dir id='m2LgF'><q id='m2LgF'></q></dir></style></legend>

            <small id='m2LgF'></small><noframes id='m2LgF'>

            <i id='m2LgF'><tr id='m2LgF'><dt id='m2LgF'><q id='m2LgF'><span id='m2LgF'><b id='m2LgF'><form id='m2LgF'><ins id='m2LgF'></ins><ul id='m2LgF'></ul><sub id='m2LgF'></sub></form><legend id='m2LgF'></legend><bdo id='m2LgF'><pre id='m2LgF'><center id='m2LgF'></center></pre></bdo></b><th id='m2LgF'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='m2LgF'><tfoot id='m2LgF'></tfoot><dl id='m2LgF'><fieldset id='m2LgF'></fieldset></dl></div>
                <tfoot id='m2LgF'></tfoot>

                本文介紹了如何在不觸發 Text Watcher 的情況下更改 EditText 文本?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我有一個帶有 Customer Text Watcher 的 EditText 字段.在一段代碼中,我需要使用 .setText("whatever").

                I have an EditText field with a Customer Text Watcher on it. In a piece of code I need to change the value in the EditText which I do using .setText("whatever").

                問題是,一旦我進行了更改,就會調用 afterTextChanged 方法,這會創建一個無限循環.如何在不觸發 afterTextChanged 的??情況下更改文本?

                The problem is as soon as I make that change the afterTextChanged method gets called which created an infinite loop. How can I change the text without it triggering afterTextChanged?

                我需要 afterTextChanged 方法中的文本,所以不建議刪除 TextWatcher.

                I need the text in the afterTextChanged method so don't suggest removing the TextWatcher.

                推薦答案

                你可以注銷watcher,然后重新注冊.

                You could unregister the watcher, and then re-register it.

                或者,您可以設置一個標志,以便您的觀察者知道您何時自己更改了文本(因此應該忽略它).

                Alternatively, you could set a flag so that your watcher knows when you have just changed the text yourself (and therefore should ignore it).

                這篇關于如何在不觸發 Text Watcher 的情況下更改 EditText 文本?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                How to convert Integer to int?(如何將整數轉換為整數?)
                How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                Inconsistent behavior on java#39;s ==(java的行為不一致==)
                Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)
                • <tfoot id='b2ZTH'></tfoot>

                  <small id='b2ZTH'></small><noframes id='b2ZTH'>

                  <legend id='b2ZTH'><style id='b2ZTH'><dir id='b2ZTH'><q id='b2ZTH'></q></dir></style></legend>
                • <i id='b2ZTH'><tr id='b2ZTH'><dt id='b2ZTH'><q id='b2ZTH'><span id='b2ZTH'><b id='b2ZTH'><form id='b2ZTH'><ins id='b2ZTH'></ins><ul id='b2ZTH'></ul><sub id='b2ZTH'></sub></form><legend id='b2ZTH'></legend><bdo id='b2ZTH'><pre id='b2ZTH'><center id='b2ZTH'></center></pre></bdo></b><th id='b2ZTH'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='b2ZTH'><tfoot id='b2ZTH'></tfoot><dl id='b2ZTH'><fieldset id='b2ZTH'></fieldset></dl></div>

                    <tbody id='b2ZTH'></tbody>

                          <bdo id='b2ZTH'></bdo><ul id='b2ZTH'></ul>
                          主站蜘蛛池模板: 欧美成人猛片aaaaaaa | 国产精品资源在线观看 | 在线视频第一页 | 欧美猛交 | 91视频网址 | 美女131mm久久爽爽免费 | 九九热精品视频在线观看 | 久久久久久www | 成年网站在线观看 | 国内自拍视频在线观看 | 高清av在线 | 青青草av网站 | 九九亚洲| 五月婷婷导航 | 亚洲成人精品 | 久久黄色| 毛片av免费在线观看 | 久久亚洲天堂 | 亚洲国产一区二区视频 | 日韩欧美精品 | 殴美成人在线视频 | 黑人巨大精品 | 中文字幕亚洲一区二区三区 | 国产色婷婷久久99精品91 | 亚洲日本欧美 | 国产精品久久久久久久久久妞妞 | 免费麻豆视频 | 中文字幕在线视频免费观看 | 伊人久久精品一区二区三区 | 99久久精品免费看国产免费软件 | 992tv人人草 久久精品超碰 | 最新日韩在线 | 国产午夜视频 | 国产在线精品一区二区三区 | 中国美女一级黄色片 | 国产成人免费视频网站高清观看视频 | 日韩视频在线免费观看 | 性一交一乱一伦视频免费观看 | 北条麻妃av一区二区三区 | 91精品国产综合久久久久久漫画 | 欧美一区二区三区免费在线观看 |