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