0

I have a android webview application and tried to load outlook.com.

i have few mixed of portrait and landscape devices.

in both the devices outlook layout is displaying differently as shown in below images.

Image1 is in portrait device.

enter image description here

Image2 is in Landscape device.

enter image description here

is there any way i can show the same kind of layout in both the devices like portrait one.

i.e i want to display the layout shown in image1 (portrait device) in landscape device also?

here i have tried by setting the User agent but it didn't help.

is there any way that i can show the same kind of layout in both the devices like portrait one.

i.e i want to display the layout shown in image1 (portrait device) in landscape device also?

1 Answer 1

0

Try adjusting WebView settings like:

webView.getSettings().setLoadWithOverviewMode(true)

or

webView.getSettings().setUseWideViewPort(true) 

to control viewport behavior. Experiment with these settings to see if they improve layout consistency.

Sign up to request clarification or add additional context in comments.

3 Comments

Yes i have already used these settings but no use.
@Jeremy Caney Any idea would you share with me?
@RajendraPrasad: Unfortunately, no. This isn’t my area of expertise. I was just fixing the formatting of the answer as part of StackOverflow’s review process.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.