ArminKH
Well-Known Member
hi
before using Designer and Autoscaleall and autoscalerate i use this code to set my viewes size and position
above code works perfectly and my viewes scaled with a good Rate
but for now if i want to Set Same Scale Rate by using AutoScaleAll from designer then Which Scale Rate must be Entered? 0.5?0.6?0.7?
i want just same result
thank u
before using Designer and Autoscaleall and autoscalerate i use this code to set my viewes size and position
B4X:
Sub AutoResizeAll
Dim xx,yy,rr As Float
xx=(((100%x)/320)/Density)
yy=(((100%y)/480)/Density)
rr = Min(xx,yy)
For Each V As View In Activity.GetAllViewsRecursive
V.Left=V.Left*rr
V.Top=V.Top*rr
V.Width=V.Width*rr
V.Height=V.Height*rr
Next
End Sub
but for now if i want to Set Same Scale Rate by using AutoScaleAll from designer then Which Scale Rate must be Entered? 0.5?0.6?0.7?
i want just same result
thank u