I want to do application which will not change UI even if screen is changed to portrait or landscape direction. How to do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have made a static method in one of my library classes:
The trick is that this code only works for screens created after running it. So you must run the code BEFORE you show your first screen.
I call this method from my
Application.main(String args)method, just before the call toenterEventDispatcher().