2014-12-18 1 views
1

스크린 샷의 화면 하단에 표시되는 그림자의 기술적 이름은 무엇입니까? 온라인 검색을 통해 검색어를 찾을 수없는 것 같습니다.Android 5 기능 - 스 와이프시 화면 가장자리의 그림자 사용자 정의

아직 안드로이드 5가 없지만 기능에 다소 익숙한 사람이라면 누구나 갈 곳이없는 방향으로 스 와이프하려고 할 때이 그림자가 나타납니다 (예 : 이미에있을 때 아래로 스 와이프). 이 메뉴의 맨 아래).

내 앱에서이 그림자의 색상을 변경할 수 있습니까? - 그렇다면 어떻게?

The primary branding color for the app; used as the action bar background, recents task title and in edge effects.

colorPrimary 및 기타 속성을 변경 :

Screenshot

+1

에지 효과 : http://developer.android.com/reference/android/widget/EdgeEffect.html 및 http://developer.android .com/reference/android/support/v4/widget/EdgeEffectCompat.html 또한 도움이 될 수 있습니다. http://developer.android.com/training/gestures/scroll.html – Brian

답변

1

브라이언의 코멘트를 구축, 나는 가장자리 효과의 색상을 변경하는 방법 중 하나를 생각하면 developer guides이 같은 설명하는 colorPrimary 통해 Material 테마를 사용하는 동안 here을 발견했습니다.

또한

, colorEdgeEffect 참조 :

Further attributes give fine grained control over colorizing controls, see: colorControlNormal, colorControlActivated, colorControlHighlight, colorButtonNormal, colorSwitchThumbNormal, colorEdgeEffect, statusBarColor and navigationBarColor.

<resources> 
    <!-- inherit from the material theme --> 
    <style name="AppTheme" parent="android:Theme.Material"> 
    <!-- Main theme colors --> 
    <!-- your app branding color for the app bar --> 
    <!-- changing colorPrimary will change the color of the edge effect --> 
    <item name="android:colorPrimary">@color/primary</item> 
    <!-- darker variant for the status bar and contextual app bars --> 
    <item name="android:colorPrimaryDark">@color/primary_dark</item> 
    <!-- theme UI controls like checkboxes and text fields --> 
    <item name="android:colorAccent">@color/accent</item> 
    </style> 
</resources> 
관련 문제