Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/191.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 安卓5功能-自定义屏幕边缘的阴影时,刷卡_Android_Android 5.0 Lollipop - Fatal编程技术网

Android 安卓5功能-自定义屏幕边缘的阴影时,刷卡

Android 安卓5功能-自定义屏幕边缘的阴影时,刷卡,android,android-5.0-lollipop,Android,Android 5.0 Lollipop,屏幕截图中显示在屏幕底部的阴影的技术名称是什么?我似乎无法通过在线搜索找到它的术语 如果没有安卓5,但对其功能有点熟悉的人读到这篇文章,当你在无处可去的情况下尝试向某个方向滑动时(例如,当已经在菜单底部时向下滑动),就会出现此阴影 可以在我自己的应用程序中更改此阴影的颜色吗?-如果是,怎么做 根据Brian的评论,我认为改变边缘效果颜色的一种方法是通过colorPrimary,描述如下: 应用程序的主要品牌颜色;用作操作栏背景、最近的任务标题和边缘效果。 在使用Material主题时更改colo

屏幕截图中显示在屏幕底部的阴影的技术名称是什么?我似乎无法通过在线搜索找到它的术语

如果没有安卓5,但对其功能有点熟悉的人读到这篇文章,当你在无处可去的情况下尝试向某个方向滑动时(例如,当已经在菜单底部时向下滑动),就会出现此阴影

可以在我自己的应用程序中更改此阴影的颜色吗?-如果是,怎么做


根据Brian的评论,我认为改变边缘效果颜色的一种方法是通过
colorPrimary
,描述如下:

应用程序的主要品牌颜色;用作操作栏背景、最近的任务标题和边缘效果。

在使用
Material
主题时更改
colorPrimary
和其他属性,找到

另外,请参见
colorEdgeEffect

更多属性提供对着色控件的细粒度控制,请参阅:colorControlNormal、colorControlActivated、colorControlHighlight、colorButtonNormal、colorSwitchThumbNormal、colorEdgeEffect、statusBarColor和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>

@颜色/原色
@颜色/原色/深色
@颜色/口音
Edge effect:和也可能有帮助: