Android Question TestAnchor#2

Theera

Expert
Licensed User
Longtime User
Hi Erel,

Refer to TestAnchor#1, Now I need to anchor 16 the buttons (15 Puzzles) on the panel1,but size of panel1 isn't size of main activity. I've tried it,but It's not form which I need to be.
 

Attachments

  • TestAnchor2.zip
    7.3 KB · Views: 225

Theera

Expert
Licensed User
Longtime User
Hi Erel,
I've updated to be version 3.2. In my Idea,the 16 buttons should automatic relocation themselves(without coding in the designer script) followed size of panel1 which changed by coding in designer script .
 

Attachments

  • result.png
    result.png
    35.3 KB · Views: 321
  • NewTestAnchor2.zip
    7.3 KB · Views: 249
Upvote 0

Theera

Expert
Licensed User
Longtime User
Hi Erel,
Please see this. compare with this which created by previously version The buttons's Restart and Close are created by anchored,but the 16 buttons aren't . I think that the anchored feature is fix for B4A programming,isn't it? (I think that the anchored feature is really useful,isn't it? because I still must coding in designer script)
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I think that the anchored feature is fix for B4A programming,isn't it? (I think that the anchored feature is really useful,isn't it? because I still must coding in designer script)
The anchor feature is not a fix. It is another tool in the set of tools that you can use to design your layout. It is also not a replacement for designer scripts.
 
Upvote 0
Top