Remote ListView blinks on android widget

余生颓废 提交于 2019-12-02 03:14:56

Ok I found a solution to blinking problem while clicking the widget. For example if you look at youtube app in android, you might recognize it waits you until its open. In below, you may try to set android:windowDisablePreview to true in your style.xml. I believe Google used same method to prevent preview mode in Youtube app.

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="android:actionBarStyle">@style/Widget.AppCompat.ActionBar</item>
        <!-- closed the preview window -->
        <item name="android:windowDisablePreview">true</item>

    </style>

I hope this solution helps you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!