带背景颜色的按钮,波纹效果仅在左上角呈现 [英] Button with background color, ripple effect renders in upper left corner only

查看:41
本文介绍了带背景颜色的按钮,波纹效果仅在左上角呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按钮在点击时带有背景颜色的波纹效果异常渲染,左上角的矩形选择区域呈阴影或褪色,仅在整个按钮区域中显示.

Button with background color when clicked ripple effect renders abnormally with a shaded or faded rectangular selection area in upper left corner only instaed of the whole button area.

VS 2017,Xamarin 4.10.10.2,Xamarin.Andriod SDK 8.3.3.2

VS 2017, Xamarin 4.10.10.2, Xamarin.Andriod SDK 8.3.3.2

推荐答案

已打开与此问题相关的问题 当更改/设置按钮背景颜色时,Android 按钮仅在三星设备按钮的左上区域显示波纹效果,并且似乎仅影响运行 Android 8.0.0 及以下版本的三星设备,同时它正在由 Xamarin 团队解决,您可以:

An issue has been opened related to this problem Android Buttons shows ripple effect only on the upper left area of the button on Samsung devices when changing/setting the buttons background color and it seems affecting Samsung devices running Android 8.0.0 and below only, meanwhile it is being solved by Xamarin team you can:

  1. 使用材料按钮 不受此问题影响.
  2. 或者尝试社区在我提供的 GitHub 链接中提到的解决方法之一.

这篇关于带背景颜色的按钮,波纹效果仅在左上角呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆