Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to set landscape in android studio

in the manifest, set as attribute of the node activity the code below:
android:screenOrientation="landscape"

Also, in you MainActivity Class, inside the onCreate method, after the super call type:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
Comment

PREVIOUS NEXT
Code Example
Java :: spring mvc get all request parameters 
Java :: print colored text java 
Java :: add extension quarkus 
Java :: javafx change text size 
Java :: Which of the following is the only Java package that is imported by default? 
Java :: primefaces custom validation 
Java :: check the string has spaces in it in java 
Java :: how to extract decimal vqalue from float in android studio 
Java :: java http request post 
Java :: java get longest string in array 
Java :: convert hashset to array 
Java :: get file extension java 
Java :: compare date with current date in android 
Java :: sreekanth kasani 
Java :: java check if divisible 
Java :: retrofit dependency in android studio 
Java :: object to array java 
Java :: change color of jframe 
Java :: char cannot be converted to string 
Java :: spring security enable global cors 
Java :: system.out.println in java 
Java :: how to check grant permissions in android 
Java :: how to print multiple lines in java 
Java :: how to print array 
Java :: spring boot hibernate log sql 
Java :: object to double java 
Java :: Java JPanel set background color 
Java :: java prime numbers 
Java :: spinner event in android 
Java :: iterator java 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =