Android Question galaxy s2

dgoss

Member
Licensed User
Longtime User
i can not seem to get s2 to play properly in the designer. I have minsdk = 7 maxsdk =17 ,b4a ver 2.71.
I can't get the layout to display in designer script mode to check it.Attached is act1.bal i hope the is the file u need to check it if u would be so kind.
 

Attachments

  • act1.bal
    25.3 KB · Views: 236

dgoss

Member
Licensed User
Longtime User
hi Erel
set targetsdkVersion. Set for nexus one,samsung galaxy 480 x 800 1.5 portrait, but can't get it do do anything in designer script mode. i get no errors. It just dont do anything. works fine for other devices just samsung galaxy


thx for any help
 
Upvote 0

ttsolution

Member
Licensed User
Longtime User
Dear all,

I faced with this error when compling

upload_2013-9-24_14-49-42.png


Please help me

Many thanks,

Jonh
 
Upvote 0

dgoss

Member
Licensed User
Longtime User
still can not get designer script to autoscale for nexus/galaxy .I'm a bit stuck as to what to do
 
Upvote 0

dgoss

Member
Licensed User
Longtime User
hi Erel

ok got that. But why does it not position the views (ie. panels, labels etc)when in designer script.
 
Upvote 0

dgoss

Member
Licensed User
Longtime User
Hi Erel

Would you mind looking at this one for me pls.
 

Attachments

  • act1.bal
    29.6 KB · Views: 227
Upvote 0

dgoss

Member
Licensed User
Longtime User
to big to upload whole project, but i have down sized it and u should see what i'm getting at.
i have rem out some of the panels in the designer so u see second panel, but feel free to play with it.

many thx
 

Attachments

  • MyHours.zip.zip
    79 KB · Views: 209
Upvote 0

klaus

Expert
Licensed User
Longtime User
I'm afraid that you don't really understand AutoScale.
AutoScale supposes a 320 * 480 / 160 or 480 * 320 / 160 standard layout !
Your Panels are bigger than the 'standard' screen ?
You autoscale the layout and then you change everything, so autoscale is of no use.

Do you want to have the layout for different screen sizes or only for one size ?
If it's for one size, define a layout for this screen size.
If it's for different sizes, do you want it for smartphones only or also for tablets.

I don't understand what this is supposed to acheive ?
BtnLeft.Bottom = 100%y +45dip
this means that the bottom of the Button is below the bottom of the screen ?

this line means that the Top of the Panel is above the top of the screen ?
PnlTimes.SetTopAndBottom(0%y,BtnLeft.Top - 10dip)
Is this really what you want ?

This is Label19.Top - 0dip wrong, might or should be Label19.Top = 0

Best regards.
 
Upvote 0

dgoss

Member
Licensed User
Longtime User
hi Klaus
thx for quick reply.

Thought i understood but guess i got confused somewhere along the line. I am kind of new to this.
Would like to have it for smart phone only, with verious screen sizes to boot.
The line
BtnLeft.Bottom = 100%y +45dip worked for on my phone (i don't know why but it did), i have galaxy note 1.

I'll have to read autoscale tutorial again.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I'll have to read autoscale tutorial again.
Have a look at the Beginner's Guide chapters 8.6 to 8.11

BtnLeft.Bottom = 100%y +45dip Yes it will work, but you are missing the 45dip bottom pixels of the Button on your screen.

Best regards.
 
Upvote 0

dgoss

Member
Licensed User
Longtime User
ok guys re read guide got my head round( i not the smartest but i try), things starting to look right now just a few tweaks.

thx for input.
Best buy i ever made learning slowly but enjoying the journey
 
Upvote 0
Top