Как я могу получить звук касания, когда пользователь касается сетки?
<GridLayout row="3" colSpan="2" columns="15*,75*,10*" height="12%" rows="*,*" class="card-large box" (tap)="onTap()">
<Label text="" class="fa centered icon-category" col="0" rowspan="2"></Label>
<Label text="MyText" class="category-name" verticalAlignment="bottom" col="1" row="0"></Label>
<Label text="numbers" verticalAlignment="top" col="1" row="1"></Label>
<Label text="" class="fa centered icon-arrow" col="2" rowspan="2"></Label>
</GridLayout>
ОБНОВЛЕНИЕ: я мог получить звук, открыв собственный API-интерфейс Android, вот код:
пусть decorView: any = app.android.startActivity.getWindow (). getDecorView () decorView.playSoundEffect (android.view.SoundEffectConstants.CLICK)
но я хотел бы знать, почему нажатие на макет Android не вызывает звуковой эффект, ..