英文:
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?
专注分享java语言的经验与见解,让所有开发者获益!
评论