in 1.25 device , when i use 2 , the label not be in the center
i’m sorry for my english
in 1.25 device , when i use 2 , the label not be in the center
i’m sorry for my english
The 2 is the middle of the main phone.
And 1.25 is the middle of the other phone
Incidentally, the black image is a screenshot of the main phone that used the value 2
what happens, if you use Screen.Height?
the center of the screen is always the height divided by 2…
Taifun
Can you provide a demo.aia…
Also can you tell us what
android 7 android emulator memu
android 8 huawei y7 prime 2018
when i use value 2 , it be in center in emulator , but in y7 prime don’t be in center
What’s the point of using animation as it does nothing with those values…
Edit: I think I have figured out why
I think its almost the same.
True - true
Note. animation component uses real px of the phone while you are feeding it with dp values…
That’s why we used density block
This works thanks, but I still don’t understand the benefit of the density block
Is there any article or video to explain it?
This also works a thank you
i have a small Doubt
Can’t we do it in a Simpler way by keeping AlignVertical and AlignHorizontal to Center.
Sorry if i misunderstood something.
Of course.
See here and watch the video:
no my friend , this a floating label
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.