This question already has answers here:
Disable Button click sound in android
(4 answers)
Closed 6 months ago.
I can't find in our segment of the Internet this decide.
I work on Android game, and I can't disable click sound on application level, when the user click on clickable elements: buttons, imageViews etc.
But I know that I can do this using smartphone menu, but this solution not good.
Then, how I can disable this sounds using android studio code?
Thanks for your all answers and your wasted time!
you just have to add this line off code to disable the sound
Button.setSoundEffectsEnabled(false);
Related
This question already has answers here:
Android Studio Editor Font Sizing
(11 answers)
Closed 10 months ago.
I was working with my class 9 project of android studio and while editing the font size I mistakenly changed it to 222 instead of 22, and now i can't see anything properly. How can i make it normal again?
Well this is not the right way to ask a question on stackoverflow and you should read the guidelines before asking questions.
But for your issue go to the xml file you were working on, located in res-> layout.
Press (ctrl + F) on Windows and type "size". This will help you to find the font size easily in your xml file.
Once you have found it change it to 22dp or anything you need.
This question already has answers here:
Android App activities installed as multiple icons
(3 answers)
Closed 1 year ago.
My main activity has a button that opens the Libgdx game, which was what I wanted, but when I test the app on my phone or on the emulator, two application icons appear. One of them opens the game directly, the other one is the main app that contains the button that starts the game class.
Is there a way to hide one of them? Or what is the proper thing to do? I could not find any information on the internet.
I found the solution: Android App activities installed as multiple icons
I had an extra
<category android:name="android.intent.category.MAIN" />
This question already has answers here:
Android Studio 3.3 RC3 Theme Editor Missing
(6 answers)
Closed 3 years ago.
I've checked for this question before and I was told to check the right hand corner of my android studio or check tool. Then go to Android but there is no "open theme editor" at the top right corner of my Android Studio and I still cannot find it in "tools>android"
you can open it using the android studio search everywhere feature. Press Shift twice and type theme, it will show you the theme editor in the options.
This question already has answers here:
How to move out of auto-completed brackets in IntelliJ IDEA (without using the arrow keys)?
(10 answers)
Closed 8 years ago.
I know this is kinda stupid, but i just recently switched from eclipse to android studios, and in eclipse you could press tab to escape brackets, instead of using your mouse or using arrow keys. Is there a way to do this in android studios?
Sorry to say that Android Studio simply does not do this yet.
On my Mac, the closest thing has been autocompleting things with control + space, which will bring up a list of possible commands you'd want to autocomplete, and when you hit enter, will help you fill in the variables and automatically place the parenthesis and all.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to change current Theme at runtime in Android
Hi so I'm nearing the completion of my first app and now there are just some things I'd like to add in for user interface for instance the current mms app I have on my droid is a modded stock one where it has in the settings a check box to change the apps theme between black and white.
I was wondering if someone could show me how to do that or at least point me in the right direction. I've read a few guides on adding check boxes to my app so that's no problem its the actual change how do I put in the code both themes and then set the app to look at one or the other based on the selection of the check box.
Thank you for any input and help.
Call Activity.setTheme() in onCreate, before you set up your layout.