0

My ConstraintLayout has an OnClick method, so every time the screen is touched, i works like a button. But the problem here is that I need to get rid of the default sound button but the setSoundEffectEnabled(false)' ONLY works for actual button views.

Any ideas?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
  • Possible duplicate of [Disable Button click sound in android](https://stackoverflow.com/questions/15293608/disable-button-click-sound-in-android) – Akash Dubey Jan 10 '19 at 05:15
  • https://stackoverflow.com/a/15293689/5502638, here is the answer, kindly search before posting question – Akash Dubey Jan 10 '19 at 05:16
  • the problem is that it is not a button view so that solution doesn´t work. Of course I search before posting any question I don´t want to waste your time. – Roberto Chávez Jan 10 '19 at 05:19
  • https://stackoverflow.com/a/27683258/5502638, see comment, u might need to write clickable true at Constraint layout in xml – Akash Dubey Jan 10 '19 at 05:20

0 Answers0