M mehdipass Active Member Nov 18, 2022 #1 Hi, Orientations: #iPhoneOrientations: Portrait, LandscapeLeft, LandscapeRight My project this attributes. Now when I change page orientation by rotate my iphone , the page reload again. Why? How to fixed it? I don't want the page to reload. In android and b4a I write this code in manifest and work well: Orientation: SetActivityAttribute(myActivity, android:screenOrientation,"sensorLandscape") SetActivityAttribute(myActivity, android:configChanges,"orientation|screenSize|keyboardHidden")
Hi, Orientations: #iPhoneOrientations: Portrait, LandscapeLeft, LandscapeRight My project this attributes. Now when I change page orientation by rotate my iphone , the page reload again. Why? How to fixed it? I don't want the page to reload. In android and b4a I write this code in manifest and work well: Orientation: SetActivityAttribute(myActivity, android:screenOrientation,"sensorLandscape") SetActivityAttribute(myActivity, android:configChanges,"orientation|screenSize|keyboardHidden")
Erel B4X founder Staff member Licensed User Longtime User Nov 20, 2022 #2 Nothing is reloaded in B4i (and B4J) when the page is resized. Upvote 0
M mehdipass Active Member Nov 20, 2022 #3 Erel said: Nothing is reloaded in B4i (and B4J) when the page is resized. Click to expand... Hi, No On the page, when I change page orientation by rotate my iphone , the page reload again. Upvote 0
Erel said: Nothing is reloaded in B4i (and B4J) when the page is resized. Click to expand... Hi, No On the page, when I change page orientation by rotate my iphone , the page reload again.
Erel B4X founder Staff member Licensed User Longtime User Nov 20, 2022 #4 This means that you mistakenly loaded the layout in the page_resize event. Upvote 0
M mehdipass Active Member Nov 21, 2022 #5 Erel said: This means that you mistakenly loaded the layout in the page_resize event. Click to expand... Hi, I loaded the layout with code, not designer. (create layout with code in b4i) Is it mistake? Upvote 0
Erel said: This means that you mistakenly loaded the layout in the page_resize event. Click to expand... Hi, I loaded the layout with code, not designer. (create layout with code in b4i) Is it mistake?
Erel B4X founder Staff member Licensed User Longtime User Nov 21, 2022 #6 Yes, it is a mistake. It is much simpler to handle the page resizing with the designer. Upvote 0