Android Question Responsive Layout


Hi guys, i just got confused, i make an app, i want this layout is responsive on all phone resolution, i code the visual designer like the code i shared below.

i tried this layout on 2 phones resolution :
- Vivo y71 = its perfectly works!!
-Advan i5C = the layout is not reponsive

how can i make this layout perfectly works on all phone resolution??
please i need it

Visual Designer:
'All variants script
AutoScaleAll
imgIcon.Left = 47dip
imgIcon.Top = 44dip
imgIcon.Width = 161dip
imgIcon.Height = 58dip

imgFlatDesign.Width = 264dip
imgFlatDesign.Height = 176dip

btnLogin.Width = 265dip
btnLogin.Height = 48dip

btnRegis.Width = 265dip
btnRegis.Height = 48dip

lblSambut.Top = imgIcon.Bottom + 22dip
imgFlatDesign.HorizontalCenter = pnlMain.Width / 2
imgFlatDesign.Top = lblSambut.Bottom + 25dip

btnLogin.Top = imgFlatDesign.Bottom + 31dip
btnRegis.Top = btnLogin.Bottom + 21dip
 
ohh hmm, should i remove these values of left, right, top, etc in the script?

but how about the code to setting the top like this, should i remove this code too?

Code to depend on other views:
btnLogin.Top = imgFlatDesign.Bottom + 31dip
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…