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

<tfoot id='bIgQj'></tfoot>

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

    1. <legend id='bIgQj'><style id='bIgQj'><dir id='bIgQj'><q id='bIgQj'></q></dir></style></legend>
      • <bdo id='bIgQj'></bdo><ul id='bIgQj'></ul>

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

        如何在 Kivy 中檢測 Android 上的屏幕旋轉?

        How to detect screen rotation on Android in Kivy?(如何在 Kivy 中檢測 Android 上的屏幕旋轉?)
        • <small id='avTPD'></small><noframes id='avTPD'>

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

              <bdo id='avTPD'></bdo><ul id='avTPD'></ul>
              <tfoot id='avTPD'></tfoot>

                • <legend id='avTPD'><style id='avTPD'><dir id='avTPD'><q id='avTPD'></q></dir></style></legend>

                    <tbody id='avTPD'></tbody>
                  本文介紹了如何在 Kivy 中檢測 Android 上的屏幕旋轉?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我一直在尋找一種 Kivy 解決方案來捕獲 Android 設備從一個方向到另一個方向的旋轉.我已經嘗試了以下兩種窗口方法,但在旋轉設備時都沒有執行 on_rotaterotate_screen 例程.我看到 java 中有一個 onConfigurationChanged 事件,但我找不到 Kivy 的相同事件處理.

                  I have been searching for a Kivy solution to capture the Android device rotation from one orientation to another. I have tried both of the window methods below but neither executes the on_rotate or rotate_screen routines when I rotate the device. I see there is an onConfigurationChanged event in java but I can't find the same event handling for Kivy.

                      Window.on_rotate(self.on_rotate)
                      Window.bind(on_rotate=self.rotate_screen)        
                  

                  我在 logcat 中得到的是以下消息,表明設備已旋轉,但我的應用從未看到這些事件.

                  What I do get in the logcat is the following messages indicating the device has rotated but my app never see these events.

                  I/InputReader(270): Reconfiguring input devices.  changes=0x00000004
                  I/InputReader(270): Device reconfigured: id=3, name='ilitek_i2c', surface size is now 1280x800, mode is 1
                  I/ActivityManager(270): Config changed: {1.0 0mcc0mnc en_US sw800dp w1280dp h752dp xlrg land finger -keyb/v/h -nav/h s.8}
                  

                  推薦答案

                  我認為 on_rotate 只跟蹤 Kivy 的內部旋轉(這是在 OpenGL 中完成的,與 Android 級別旋轉無關).

                  I think on_rotate only tracks Kivy's internal rotation (this is done in OpenGL and doesn't relate to the Android level rotation).

                  您可能可以使用 pyjnius 來使用普通的 Java 方法,但我不知道細節.一個可能同樣有效的簡單解決方案是觀察 Window.size (from kivy.core.window import Window) - 這應該會檢測到從縱向到橫向的變化.

                  You can probably use pyjnius to work with the normal Java methods for this, but I don't know the details. A simple solution that may work just as well is to watch Window.size (from kivy.core.window import Window) - this should detect the change from portrait to landscape.

                  這篇關于如何在 Kivy 中檢測 Android 上的屏幕旋轉?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                  Get current location during app launch(在應用啟動期間獲取當前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)

                    <tbody id='1zgtg'></tbody>
                  <legend id='1zgtg'><style id='1zgtg'><dir id='1zgtg'><q id='1zgtg'></q></dir></style></legend>

                      <bdo id='1zgtg'></bdo><ul id='1zgtg'></ul>

                        <small id='1zgtg'></small><noframes id='1zgtg'>

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

                          • 主站蜘蛛池模板: 黄 色 毛片免费 | 久久色视频 | 午夜激情免费视频 | 亚洲国产精品一区二区久久 | 亚洲精品成人在线 | 成年人黄色免费视频 | 中文字幕av在线 | 国产一区在线免费 | 一区在线免费视频 | 国产在线观看免费 | 国产成人99久久亚洲综合精品 | av片免费观看 | 91精品久久久久久久久久 | 国产精品亚洲综合 | 精品久久久久久久久久久久久久久久久 | 伊人热久久 | 日本国产精品视频 | 欧美国产日韩精品 | 成人午夜网站 | 一区欧美 | 亚洲成人一区 | 色www精品视频在线观看 | 久久久久久久亚洲精品 | 日韩精品国产精品 | 精品国产黄色片 | 一二区视频 | 国产99视频精品免费视频7 | 一区欧美 | 狠狠插天天干 | 久久久免费电影 | 在线视频一区二区三区 | 在线免费观看黄网 | 国产色黄| 精品久久久久久久 | 欧美 中文字幕 | 2019精品手机国产品在线 | 久久黄色| 91精品福利| www成人免费视频 | 午夜精品久久久久久久星辰影院 | 久久精品国产一区二区电影 |