Is there a way to display a View, such as a TextView sideways using the XML layout file? I know you can rotate the view using code in an activity, but is there a way just to do it with layout?
A:
hers' you xml layout
chk that if it works
http://androidosbeginning.blogspot.com/2010/09/xml-layout-for-android.html
success_anil
2010-09-23 01:52:08
Can you explain what's making it rotate in your example?
jandjorgensen
2010-09-23 02:44:46
You can use below attribute for activity tag in AndroidManifest.xml for setting screen orientation . android:screenOrientation=["unspecified" | "user" | "behind" | "landscape" | "portrait" | "sensor" | "nosensor"]
success_anil
2010-09-23 11:17:35
I don't want to rotate my screen. I want to rotate the TextView.
jandjorgensen
2010-10-08 06:32:59