|apps/android/wikipedia : master||Consistent list design.|
@Vibhabamba and I had a discussion about the correct alignment of RTL and LTR text fields, and here's the result:
- If the system language is LTR, then all text fields should be left-aligned (whether or not the text itself is LTR or RTL).
- If the system language is RTL, then all text fields should be right-aligned (whether or not the text itself is LTR or RTL).
The above is consistent with how the Android OS itself handles RTL content, and improves the visual flow of the app.
Hint: to accomplish the above behavior, all text fields should have these attributes:
android:gravity="start" android:textDirection="anyRtl" android:textAlignment="viewStart"
(note: the "anyRtl" property handles cases where there is mixed LTR and RTL text within the same text field.)
Let's remove the alphabet markers in the list view.
Currently: Search, Recent, Saved, Similar Pages, Read more will be consistent.
Nearby will have a slightly taller cell height.