D Deleted member 103 Guest Sep 1, 2019 #1 Hi, I have display problem with iPhone X, only when I press the Resize button, the layout is displayed correctly. The project is just a stripped down project from an app, just for demostration. Attachments b4i-test.zip b4i-test.zip 9.6 KB · Views: 385
Hi, I have display problem with iPhone X, only when I press the Resize button, the layout is displayed correctly. The project is just a stripped down project from an app, just for demostration.
Semen Matusovskiy Well-Known Member Licensed User Sep 1, 2019 #2 Native 6s doesn't have SafeArea. In Iphone X you really resize (decrease) pnlRoot in pMain_Resize event. So you need to resize child elements according new sizes also. For example, delete pnlRoot.LoadLayout("frmmain") in Application_Start and insert it into pMain_Resize (after pnlRoot.SetLayoutAnimated ...) Last edited: Sep 1, 2019 Upvote 0
Native 6s doesn't have SafeArea. In Iphone X you really resize (decrease) pnlRoot in pMain_Resize event. So you need to resize child elements according new sizes also. For example, delete pnlRoot.LoadLayout("frmmain") in Application_Start and insert it into pMain_Resize (after pnlRoot.SetLayoutAnimated ...)
D Deleted member 103 Guest Sep 1, 2019 #3 Semen Matusovskiy said: Native 6s doesn't have SafeArea. In Iphone X you really resize (decrease) pnlRoot in pMain_Resize event. So you need to resize child elements according new sizes also. Click to expand... Thank you for your answer, but unfortunately that has nothing to do with my problem. And besides, that's already implemented in my code. Upvote 0
Semen Matusovskiy said: Native 6s doesn't have SafeArea. In Iphone X you really resize (decrease) pnlRoot in pMain_Resize event. So you need to resize child elements according new sizes also. Click to expand... Thank you for your answer, but unfortunately that has nothing to do with my problem. And besides, that's already implemented in my code.
Semen Matusovskiy Well-Known Member Licensed User Sep 1, 2019 #4 This is a first screen (without pressing "Resize") Is it Ok ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 1, 2019 #5 It is a mistake to use a modified version of an old version of CustomListView code. Why do you need it? Why aren't you using anchors? You don't need to resize the layout in your code. The more you do in the designer script and anchors the better. You should call CLV.Base_Resize (with xCLV) after the list is resized. This will cause the items to resize. Upvote 0
It is a mistake to use a modified version of an old version of CustomListView code. Why do you need it? Why aren't you using anchors? You don't need to resize the layout in your code. The more you do in the designer script and anchors the better. You should call CLV.Base_Resize (with xCLV) after the list is resized. This will cause the items to resize.
D Deleted member 103 Guest Sep 1, 2019 #6 It is a mistake to use a modified version of an old version of CustomListView code. Why do you need it? Click to expand... I use it because I have some features that are not included in xCustomListView. Why aren't you using anchors? Click to expand... Because it is not always feasible. I'm trying to use the xCustomListView now. Upvote 0
It is a mistake to use a modified version of an old version of CustomListView code. Why do you need it? Click to expand... I use it because I have some features that are not included in xCustomListView. Why aren't you using anchors? Click to expand... Because it is not always feasible. I'm trying to use the xCustomListView now.
Erel B4X founder Staff member Licensed User Longtime User Sep 2, 2019 #7 Filippo said: I use it because I have some features that are not included in xCustomListView. Click to expand... There are many ways to add features to xCLV without modifying its code. Three such classes are listed at the end of the tutorial: https://www.b4x.com/android/forum/t...listview-cross-platform-customlistview.84501/ Upvote 0
Filippo said: I use it because I have some features that are not included in xCustomListView. Click to expand... There are many ways to add features to xCLV without modifying its code. Three such classes are listed at the end of the tutorial: https://www.b4x.com/android/forum/t...listview-cross-platform-customlistview.84501/
D Deleted member 103 Guest Sep 4, 2019 #8 Erel said: There are many ways to add features to xCLV without modifying its code. Three such classes are listed at the end of the tutorial: https://www.b4x.com/android/forum/t...listview-cross-platform-customlistview.84501/ Click to expand... Thanks for the tip. I have created an AddOn for xCustomListView and now I can use this library. Attachments clsClvAdOn.bas clsClvAdOn.bas 1.6 KB · Views: 456 Upvote 0
Erel said: There are many ways to add features to xCLV without modifying its code. Three such classes are listed at the end of the tutorial: https://www.b4x.com/android/forum/t...listview-cross-platform-customlistview.84501/ Click to expand... Thanks for the tip. I have created an AddOn for xCustomListView and now I can use this library.