Android Question Some functional suggestions on the Android development tool B4A IDE

xiaoyao

Active Member
Licensed User
Longtime User
It is best to double-click the button of the layout designer to automatically add the code that defines the variables.
Private Button2 As Button
Double-click the tab title of the code page to automatically switch to the layout designer, extract the name "Layout", or create a layout file with the same name as the Activity by default.
ctrl+double-click to implement a function similar to VB6's double-click code writing event. Automatically add code: Sub Button1_Click, the cursor is positioned here.


可以双击就自动添加代码.png
 

xiaoyao

Active Member
Licensed User
Longtime User
Can running a script add and modify the coordinates of layout designer control elements?
button1.left=10%x
button1.width=35%x
It is best to automatically reposition and set attributes so that the dynamic layout can automatically adapt to all mobile phone sizes.

用代码设置控件百分比宽度.png
 
Upvote 0

xiaoyao

Active Member
Licensed User
Longtime User
Chinese variable names are not supported, prompting "The given keyword is not in the dictionary"

不支持中文变量名称.png
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Can running a script add and modify the coordinates of layout designer control elements?
button1.left=10%x
button1.width=35%x
It is best to automatically reposition and set attributes so that the dynamic layout can automatically adapt to all mobile phone sizes.

View attachment 158448
Yes, just try it.
You can also try anchors and n-dip.
 
Upvote 0
Top