【问题标题】:Button with background color, ripple effect renders in upper left corner only带有背景颜色的按钮,波纹效果仅在左上角呈现
【发布时间】:2019-01-13 14:20:18
【问题描述】:

单击时带有背景颜色的按钮会出现异常渲染,左上角有阴影或褪色的矩形选择区域,而不是整个按钮区域。

与 2017 年相比, Xamarin 4.10.10.2, Xamarin.Andriod SDK 8.3.3.2

【问题讨论】:

  • 这看起来像 Android 上的 Ripple 动画。
  • 我也看到了这个,似乎新的 xamarin 表单按钮点击某些设备看起来像这样,主要是三星高端设备

标签: android xamarin xamarin.forms ripple-effect


【解决方案1】:

已打开与此问题相关的问题Android Buttons shows ripple effect only on the upper left area of the button on Samsung devices when changing/setting the buttons background color,它似乎仅影响运行 Android 8.0.0 及以下版本的三星设备,同时 Xamarin 团队正在解决它,您可以:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-02-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-11
    • 1970-01-01
    相关资源
    最近更新 更多