Android Wear DotsPageIndicator only fades when first created

笑着哭i 提交于 2019-12-11 13:23:13

问题


I have added a DotsPageIndicator to my GridPager which works fine.

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.

I have not touched the setDotFadeWhenIdle(boolean) property. Is there anything else i have to consider?


回答1:


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



来源:https://stackoverflow.com/questions/28141808/android-wear-dotspageindicator-only-fades-when-first-created

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