Newbie - Long screens - lots of controls

Shane119

Member
Licensed User
Longtime User
Hi everyone

Before I start I appologies for my terminology - I'm a windows developer (using VB6 and Access) - sorry - but I have to make a living some-how lol.

I need some help (even before I start my first app). I'm writing/designing an application to capture information about water conditions in tanks, etc and I've spotted a problem before I start. I have no idea how to fit all the input controlls on 1 screen. Basically I have about 20 controls I need on 1 screen, made up of dates, tick boxes, dropdowns and text fields. I can create a screen - but they dont all fit - I need about 3 or 4 times the space. Is it possible to create some scrollview with different controls? or is there a library that has already been written to do this?

Thank you inadvance for any help you can give

Shane Brennan
 

nfordbscndrd

Well-Known Member
Licensed User
Longtime User
Below is a screen shot of a drop-down options box from an app I'm working on. As you can see, it has 17 inputs, including 2 text edit boxes and 3 drop-down lists, and room for more and takes less than 2/3rds of the screen . Unless you have a lot of large text edit boxes, it's hard to see why it wouldn't fit. Maybe you could provide a screen shot.

optionsPanel.jpg
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
You can create a layout file with a Panel with the height you need for all your views (controls).
Add this panel on a ScrollView.

Attached a small demonstrator.

Best regards.

EDIT: Changed the ScrollViewPanel.Height to 800dip
 

Attachments

  • ScrollViewLong.zip
    6.1 KB · Views: 302
Last edited:
Upvote 0

Shane119

Member
Licensed User
Longtime User
Hi nfordbscndrd

Yes there are lots of comments to be entered. Mostly "Is X attached" or "Is this regularly cleaned" - then a load of text to say why there is a problem... Sorry I would provide a screen shot but... not created it yet lol (sorry)
 
Upvote 0

Shane119

Member
Licensed User
Longtime User
WOW! thanks very much Klaus this is exactly what I needed. You are a star!

Thank you also nfordbscndrd for your quick response to my post

I appreciate the help from you both - hopefully I can repay you or another user later once I learn this, what looks to be, a very powerful and potentially excellent piece of software.

Yours

Shane Brennan
 
Upvote 0

Gary Miyakawa

Active Member
Licensed User
Longtime User
Klaus,

What a GREAT demo! I have built a test project and it's working.... sort of....

I defined the Panel at 300 x 1166 in size. I specified 1166 in the scvMain.Initialize command and using the emulator (defined as HVGA size) it works fine and I can scroll the whole image, but when I then loaded it on my AT&T Atrix (using the B4A Bridge) it would only scroll 2/3rd of the image...

I expanded the scvMain.initialize to 1800 and it was just about right.

So all is working, but I'm trying to understand why I had to do this ?

Thanks again for some GREAT examples!

Gary M
 
Upvote 0

Inman

Well-Known Member
Licensed User
Longtime User
Motorola Atrix 4G has a screen resolution of 540x960 while HVGA is only 320x480. That could be the issue.

Anyway a better practice would be to set the panel height based on the bitmap height, during run time itself, instead of presetting.
 
Upvote 0

Gary Miyakawa

Active Member
Licensed User
Longtime User
Thanks for the response!

I only have 1 Image (I'm building a IR remote control replacement app) so the size is always the same... Just the screens on the Android devices will change (so I have to adjust for that)...

Still trying to get the Math right and understand why I'm having to do it...

Thanks again !

Gary M
 
Upvote 0

Inman

Well-Known Member
Licensed User
Longtime User
Aren't you using dip for the units? As in setting height as 1166dip instead of 1166? Normally that itself takes care of changing resolutions.
 
Upvote 0
Top