How to add a scrollview edge color effect in Android Lollipop?

后端 未结 6 662
说谎
说谎 2020-12-13 05:32

In my app I change the overscroll glow effect color like this:

int glowDrawableId = contexto.getResources().getIdentifier(\"overscroll_glow\", \"drawable\",          


        
6条回答
  •  粉色の甜心
    2020-12-13 06:12

    overscroll_glow.png doesn't exist in platform 21. You can copy the resourses from platform 20 and use them.

    You can find overscroll_glow.png in:

    {SDK_FOLDER}\platforms\android-20\data\res

    This way you don't use reflection that can, as you can see, mess with your program after some updates.

提交回复
热议问题