views:

25

answers:

1

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
Can you explain what's making it rotate in your example?
jandjorgensen
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
I don't want to rotate my screen. I want to rotate the TextView.
jandjorgensen