Comment puis-je obtenir le son du robinet lorsqu'un utilisateur touche une grille?Comment puis-je obtenir le tap tap lorsqu'un utilisateur touche une grille?
<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>
MISE À JOUR: Je pourrais obtenir le son par accesing l'api natif Android, voici le code:
nous decorView:. = Tout app.android.startActivity.getWindow() getDecorView() decorView .playSoundEffect (android.view.SoundEffectConstants.CLICK)
mais je voudrais savoir pourquoi exploiter une mise en page Android ne se déclenche pas l'effet sonore, ..