首次创建时Android Wear DotsPageIndicator只有变淡 [英] Android Wear DotsPageIndicator only fades when first created
问题描述
我添加了一个 DotsPageIndicator
我GridPager的正常工作。
I have added a DotsPageIndicator
to my GridPager which works fine.
我面对的唯一问题是点的淡出。当第一次显示我的UI的点是一个短暂的瞬间,比消逝可见。当我刷卡到不同的页面重新出现点和其出他们再也不会消失。
The only problem i am facing is the fade of the dots. When first displaying my ui the dots are visible for a brief moment and than fade away. When i swipe to a different page the dots reappear and from thereon out they don't disappear anymore.
我没碰过的<一个href=\"http://developer.android.com/reference/android/support/wearable/view/DotsPageIndicator.html#setDotFadeWhenIdle(boolean)\"相对=nofollow> setDotFadeWhenIdle(布尔)财产。还有什么我必须考虑?
I have not touched the setDotFadeWhenIdle(boolean) property. Is there anything else i have to consider?
推荐答案
我有同样的问题,我解决了它扩展WearableActivity和有利的环境模式。见文件的https://developer.android.com/training/wearables/apps/always-on.html#EnableAmbient
I had the same problem and I solved it extending WearableActivity and enabling Ambient mode. See doc https://developer.android.com/training/wearables/apps/always-on.html#EnableAmbient
这篇关于首次创建时Android Wear DotsPageIndicator只有变淡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!