1. <tfoot id='6FIn6'></tfoot>

      <small id='6FIn6'></small><noframes id='6FIn6'>

        <bdo id='6FIn6'></bdo><ul id='6FIn6'></ul>
      <i id='6FIn6'><tr id='6FIn6'><dt id='6FIn6'><q id='6FIn6'><span id='6FIn6'><b id='6FIn6'><form id='6FIn6'><ins id='6FIn6'></ins><ul id='6FIn6'></ul><sub id='6FIn6'></sub></form><legend id='6FIn6'></legend><bdo id='6FIn6'><pre id='6FIn6'><center id='6FIn6'></center></pre></bdo></b><th id='6FIn6'></th></span></q></dt></tr></i><div id='6FIn6'><tfoot id='6FIn6'></tfoot><dl id='6FIn6'><fieldset id='6FIn6'></fieldset></dl></div>
    2. <legend id='6FIn6'><style id='6FIn6'><dir id='6FIn6'><q id='6FIn6'></q></dir></style></legend>

        在 OnTouch 中返回真假?

        时间:2023-10-04
        <i id='X0FhE'><tr id='X0FhE'><dt id='X0FhE'><q id='X0FhE'><span id='X0FhE'><b id='X0FhE'><form id='X0FhE'><ins id='X0FhE'></ins><ul id='X0FhE'></ul><sub id='X0FhE'></sub></form><legend id='X0FhE'></legend><bdo id='X0FhE'><pre id='X0FhE'><center id='X0FhE'></center></pre></bdo></b><th id='X0FhE'></th></span></q></dt></tr></i><div id='X0FhE'><tfoot id='X0FhE'></tfoot><dl id='X0FhE'><fieldset id='X0FhE'></fieldset></dl></div>

          <tfoot id='X0FhE'></tfoot>

              <tbody id='X0FhE'></tbody>

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

              <legend id='X0FhE'><style id='X0FhE'><dir id='X0FhE'><q id='X0FhE'></q></dir></style></legend>
                • <bdo id='X0FhE'></bdo><ul id='X0FhE'></ul>
                • 本文介绍了在 OnTouch 中返回真假?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果我在 OnTouchListeneronTouch() 中返回 truefalse 有关系吗?在此示例中,我看不出返回 truefalse 之间有任何区别:Android 滑动列表

                  Does it matter if i return true or false in onTouch() of an OnTouchListener? I can't see any difference between returning true or false in this example: Android Swipe on List

                  推荐答案

                  返回值决定你是否消费了触摸事件.

                  The return value determines if you consumed the touch event.

                  换句话说,true 意味着这个触摸事件对你很感兴趣,并且所有后续调用这个触摸事件,如 ACTION_MOVEACTION_UP将交付给您.

                  In other words true means that this touch event is interesting to you and all follow up calls of this touch event like ACTION_MOVE or ACTION_UP will be delivered to you.

                  如果您返回 false,则触摸事件将被传递到视图层次结构中更靠前的下一个 View,您将不会收到任何后续调用.触摸事件将继续向上传递到视图层次结构,直到有人使用它.

                  If you return false than the touch event will be passed to the next View further up in the view hierarchy and you will receive no follow up calls. The touch event will continue to be passed further up the view hierarchy until someone consumes it.

                  如果您有任何其他问题,请随时提问!

                  If you have any further questions please feel free to ask!

                  这篇关于在 OnTouch 中返回真假?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:访问超出范围 Swift 的变量 下一篇:GPS isProviderEnabled 总是返回 false

                  相关文章

                  1. <legend id='y3gBb'><style id='y3gBb'><dir id='y3gBb'><q id='y3gBb'></q></dir></style></legend>
                    <i id='y3gBb'><tr id='y3gBb'><dt id='y3gBb'><q id='y3gBb'><span id='y3gBb'><b id='y3gBb'><form id='y3gBb'><ins id='y3gBb'></ins><ul id='y3gBb'></ul><sub id='y3gBb'></sub></form><legend id='y3gBb'></legend><bdo id='y3gBb'><pre id='y3gBb'><center id='y3gBb'></center></pre></bdo></b><th id='y3gBb'></th></span></q></dt></tr></i><div id='y3gBb'><tfoot id='y3gBb'></tfoot><dl id='y3gBb'><fieldset id='y3gBb'></fieldset></dl></div>

                  2. <tfoot id='y3gBb'></tfoot>
                  3. <small id='y3gBb'></small><noframes id='y3gBb'>

                    • <bdo id='y3gBb'></bdo><ul id='y3gBb'></ul>