I wanted to know how i could change my LinearLayout orientation according to the device Orientation in JAVA, i found how to do it by the XML way with layout and layout-land but i didn't find how doing it by the java way.
Thank you very much.
I wanted to know how i could change my LinearLayout orientation according to the device Orientation in JAVA, i found how to do it by the XML way with layout and layout-land but i didn't find how doing it by the java way.
Thank you very much.
See this it describes how to Detect Orientation Changed then change orientation in java
In
onCreate()
and in
onConfigurationChanged()
In onCreate() put the following code: