当手机处于RTL模式时,视图上的(0,0)点在哪里?

huangapple 未分类评论44阅读模式
英文:

When phone is on RTL mode whet is the (0,0) point on the View?

问题

当我的手机处于RTL模式时,而我想使用setTranslationX方法将View向左移动,我应该将正x还是负x用作方法参数?
我知道当手机处于LTR模式时,(0,0)是View的左上角。但是当手机处于RTL模式时,哪个点被视为(0,0)呢?

英文:

When my phone is on RTL mode, and i want to use setTranslationX method, to move the View to the left, should i use positive x or negative x as the method argument?
I know that when phone is on LTR mode, (0,0) is the left upper side of the View. But which point is consider to be (0,0) when phone in RTL mode?

huangapple
  • 本文由 发表于 2020年4月11日 04:23:08
  • 转载请务必保留本文链接:https://java.coder-hub.com/61148120.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定