You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requirements:
My requirement is that the screen below has a chart and details below it. When I rotate my phone, it should only show me the chart on full screen in landscape mode.
Screen:
Suggested Solution:
We can add orientation property in device object which has the value of the current orientation mode and that's either portrait or landscape.
The use of the property will be like this: device.orientation. and on the basis of orientation value, we can make some conditional rendering to achieve the required view.
Please make sure the bindings fire properly when orientation changes. The device info currently does not update after the initial load so we do need to enhance it.
The text was updated successfully, but these errors were encountered:
Requirements:
My requirement is that the screen below has a chart and details below it. When I rotate my phone, it should only show me the chart on full screen in landscape mode.
Screen:
Suggested Solution:
orientation
property indevice
object which has the value of the current orientation mode and that's eitherportrait
orlandscape
.device.orientation
. and on the basis of orientation value, we can make some conditional rendering to achieve the required view.The text was updated successfully, but these errors were encountered: