Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • do I specify the layout_width and the layout_height? because I have mentioned in the xml that it has to fill_parent. Commented Jul 15, 2013 at 16:02
  • Yes, and you would probably prefer to choose them at runtime, not in xml. Commented Jul 15, 2013 at 17:52
  • I used to the camera parameters to get the width and the height, and set it accordingly, and added them as you mentioned. But it still has no effect. The landscape mode is working fine now since I added cameraorientation: portrait in the Manifest file, but it all stretched when I make the camera vertical. Commented Jul 16, 2013 at 10:26
  • Maybe, in Portrait mode you should swap width and height? Commented Jul 16, 2013 at 13:10
  • @Haleema i m also getting same issue can u pls tell me how u resolved your issue? Commented Nov 18, 2014 at 15:36