Comments (9)
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:
- ImageButton Padding & Ripple effect stops working with .NET 8 (#18857), similarity score: 0.77
- CollectionView selecteditem background lost if collectionview (or parent) IsEnabled changed. (#20615), similarity score: 0.72
Closed similar issues:
- [regression/8.0.3] [Android] Button ripple effect not working (#18815), similarity score: 0.79
- [regression/8.0.0-preview.6.8686] Button Click Ripple Effect Not Working In Android (#17642), similarity score: 0.79
- Buttons missing ripple effect in windows? (#7492), similarity score: 0.72
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from maui.
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.
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.
Since ImageButton has no ripple so it feels wrong, I will make sure it gets a ripple if no background is set.
from maui.
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.
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.
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.
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.
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)
- [Android] Grid ColumnSpacing affects child's scrollview content size HOT 2
- AppThemeBinding BarBackground with Brush in NavigationPage and TabbedPage not working HOT 2
- [Android] Toolbar item icon and text disappears when reopening from recent applications. HOT 3
- Can't see Flyout Hambuger or Back icon HOT 2
- Editor control on Windows uses CR as line ending HOT 1
- Change default BlazorWebView local address from 0.0.0.0 to something safer HOT 9
- Change default HybridWebView local address from 0.0.0.0 to something safer
- Maui platform symbols still broken in Vstudio 2022 HOT 9
- DisplayPromptAsync not working in iOS 17.4 HOT 5
- Picker's SelectedItem in CollectionView DataTemplate not working HOT 3
- Add support for `TextAlignment.Justify`
- didReceiveIncomingPushWithPayload does not work with closed or background application HOT 4
- Can't run the test App from the MAUI introduction project HOT 2
- `CollectionView` throws `NRE` when `ItemTemplate` uses a `ViewCell` as parent HOT 4
- Android app doesn't build in Release mode (Mono Ahead of Time compiler) HOT 1
- TouchEffect cancels all gesture recognizers on iOS (at least) HOT 2
- MAUI Breaks Cohesive Design Principle
- Application works in Debug build but crashes in Release build when binding ImmutableArray to ItemsSource with x:Static HOT 3
- Obsolete Compatibility.Layout
- Items in CollectionView take up large vertical space in iOS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui.