久久久久久久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>
                          主站蜘蛛池模板: 三级av在线 | 日日骚视频 | 国产高清精品一区 | 免费v片| 怡红院怡春院一级毛片 | 精品国产乱码久久久久久果冻传媒 | 成人精品鲁一区一区二区 | 欧美综合视频 | 亚洲日韩中文字幕一区 | 久久久爽爽爽美女图片 | 黄a大片 | 欧美一级免费 | 亚洲国产成人在线视频 | 天堂免费看片 | 一区二区三区精品视频 | 亚洲国产精品视频一区 | 亚洲午夜视频在线观看 | 免费色网址 | 国产成人一区二 | 午夜天堂精品久久久久 | 在线观看国产网站 | 中文字幕在线看人 | 激情一区二区三区 | 精品1区| 综合久久av| 本道综合精品 | 亚洲经典一区 | 一区二区三区视频免费观看 | 欧美精品一区在线观看 | 国产黄色一级电影 | 久久综合伊人 | 色偷偷噜噜噜亚洲男人 | 成人精品鲁一区一区二区 | 国产成人精品一区二 | 久久精品无码一区二区三区 | 96国产精品久久久久aⅴ四区 | 欧美精品一区三区 | 亚洲精品久久久久久久久久久 | 久日精品 | 免费成人午夜 | 99精品国产一区二区三区 |