Click sound

27 views
Skip to first unread message

Carlos Verdier

unread,
May 22, 2016, 5:17:35 AM5/22/16
to CodenameOne Discussions
Hi

Is there any way to programmatically deactivate the click sound on Android when swiping tabs?

Thanks

Shai Almog

unread,
May 23, 2016, 12:10:32 AM5/23/16
to CodenameOne Discussions
Hi,
try using setTactileTouch(false) on the tabs.

Carlos Verdier

unread,
May 23, 2016, 8:16:11 AM5/23/16
to CodenameOne Discussions
I tris this with no luck:

        for (int x=0; x<findTabs(f).getComponentCount(); x++)
            findTabs(f).getComponentAt(x).setTactileTouch(false);        



So for now I'll have to do this, which at least removes the sound:

Display.getInstance().setBuiltinSoundsEnabled(false);

Shai Almog

unread,
May 23, 2016, 11:59:05 PM5/23/16
to CodenameOne Discussions
Try the same with:

Container c = findTabs(f).getTabsContainer();
for(Component cmp : c) {
   cmp.setTactileTouch(false);
}
Reply all
Reply to author
Forward
0 new messages