- Jun 6, 2020
- 11,559
- 4,422
I'm so confused about this... I have more widgets on my page than can fit, so I want to scroll the whole screen. I'm using B4XViews to be cross-platform.
AIUI, on my page/screen, I would have a scrollview (which can fill the screen) and in that scrollview I would load a panel. That panel can be larger than the actual device screen and hold all the widgets. The panel then scrolls inside of the scrollview.
Here's my experiment, which is not working:
- I created a new layout in the designer, with a couple buttons on it, one near the top, and one far down. Saved it as "MainScreenPanel"
- I have a MainScreen layout that's the first one that comes up when my app loads. In that, I added a Scroll View and called it ScrollView1
- Now, in my B4XMainPage file under B4XPage_Appear I added:
B4X:
AIUI, on my page/screen, I would have a scrollview (which can fill the screen) and in that scrollview I would load a panel. That panel can be larger than the actual device screen and hold all the widgets. The panel then scrolls inside of the scrollview.
Here's my experiment, which is not working:
- I created a new layout in the designer, with a couple buttons on it, one near the top, and one far down. Saved it as "MainScreenPanel"
- I have a MainScreen layout that's the first one that comes up when my app loads. In that, I added a Scroll View and called it ScrollView1
- Now, in my B4XMainPage file under B4XPage_Appear I added:
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید