Hi,
I use labels to display Values.
But some users can click on it and start an editor windows.
I just take the labels size and position and create a editView a little bit bigger,
with this code it works fine on my Samsung Galaxy S and some other devices:
then I found a method to change the size with one line ...
It works on my Samsung, but on a X2 Tablet with the same size and dpi the editview was bigger than it should be ?
Does this changes more than just the sizes ?
I use labels to display Values.
But some users can click on it and start an editor windows.
I just take the labels size and position and create a editView a little bit bigger,
with this code it works fine on my Samsung Galaxy S and some other devices:
B4X:
Sub EditFeldopen( nLeft As Int, nTop As Int, nWidth As Int )
Dim nHeight As Int : nHeight = 60
...
' editview have margins
nLeft = nLeft-5
nTop = nTop-5
nWidth = nWidth+10
'EditFeld.SetLayout( nLeft , nTop, nWidth, nHeight )
EditFeld.Left = nLeft
EditFeld.Top = nTop
EditFeld.Width = nWidth
' EditFeld.Height = nHeight ' defined in designer, will not change
then I found a method to change the size with one line ...
B4X:
Sub EditFeldopen( nLeft As Int, nTop As Int, nWidth As Int )
Dim nHeight As Int : nHeight = 60
...
' editview have margins
nLeft = nLeft-5
nTop = nTop-5
nWidth = nWidth+10
' shorter ...
EditFeld.SetLayout( nLeft , nTop, nWidth, nHeight )
It works on my Samsung, but on a X2 Tablet with the same size and dpi the editview was bigger than it should be ?
Does this changes more than just the sizes ?