Giter Club home page Giter Club logo

Comments (9)

github-actions avatar github-actions commented on September 27, 2024 1

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

from maui.

kevinxufei avatar kevinxufei commented on September 27, 2024 1

Can repro this issue at android platform on the latest 17.11.0 Preview 1.0(8.0.60-ci.net8.24273.1/8.0.40).

from maui.

mattleibow avatar mattleibow commented on September 27, 2024 1

Looking at this some more, I see the following with each of the buttons:

  • no background => "use default OS background" - so for image buttons, the OS does not have a ripple
  • transparent => this has a ripple, but it is not visible since the ripple is white and appears under the image
  • white => this has a ripple but it is not visible since the ripple is white and appears under the image
  • color => the white ripple is visible and under the image.

from maui.

mattleibow avatar mattleibow commented on September 27, 2024 1

Since ImageButton has no ripple so it feels wrong, I will make sure it gets a ripple if no background is set.

from maui.

mattleibow avatar mattleibow commented on September 27, 2024 1

For normal Button, there is a RippleColor property, but for the ImageButton, it is all fake as an image button is not a thing supported by Android and we are using a fancy image control.

But, changing the ripple color sounds like a feature request and we could see about adding that if people want it.

from maui.

AlleSchonWeg avatar AlleSchonWeg commented on September 27, 2024

The standard buttons also have this behaviour. The problem could be the background color from the button or from the parent element. If the color is white, transparent or not set no ripple is not working.

from maui.

AlleSchonWeg avatar AlleSchonWeg commented on September 27, 2024

Perhaps it makes sense -if possible- to set a colour for the ripple. If the ripple is always white and is sometimes not visible the user has not the android typical feedback.

from maui.

AlleSchonWeg avatar AlleSchonWeg commented on September 27, 2024

For normal Button, there is a RippleColor property

Interesting. I didn't know that. Is this accessable via platform specific code: On<Android>() or via handler?

Thank you

from maui.

mattleibow avatar mattleibow commented on September 27, 2024

This is not really a xplat feature, so we don't have an api for it. But, if you want you can add your own mapper for Android. And maybe even your own attached property - or even an effect to not have to do anything.

PlatformView.RippleColor = color.ToPlatform();

That in an effect is all that is needed.

from maui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.