ListView layout inconsistent rendering with RTL languages (Arabic)

后端 未结 6 1287
鱼传尺愫
鱼传尺愫 2021-01-17 23:44

I have simple ListView with ArrayAdapter which is working just fine. The problems start with RTL language (Arabic in this case).

W

6条回答
  •  被撕碎了的回忆
    2021-01-18 00:09

    Try using a Relative Layout for your row items, with the gravity as 'start' and 'end' (instead of 'left' and 'right') to see if that helps.

    (If you always want the image to be on a specific side then use left/right instead of start/end)

    Also, make sure you have rtl support on in your Manifest file android:supportsRtl=true

    https://developer.android.com/guide/topics/manifest/application-element.html

提交回复
热议问题