Align Toolbar icons from right to left?
Put the android:supportsRtl="true" attribute in your AndroidManifest file. After that add below line to your toolbar tag:
android:layoutDirection="rtl"
Official right-to-left support was introduced with Android 4.2 (API level 17), so this will only work if your minimum SDK level is 17:
1) Put the android:supportsRtl="true"
attribute in your AndroidManifest file to support right-to-Left layout directions.
2) Secondly put this code in your activity's onCreate() methdod:
if (getWindow().getDecorView().getLayoutDirection() == View.LAYOUT_DIRECTION_LTR){
getWindow().getDecorView().setLayoutDirection(View.LAYOUT_DIRECTION_RTL);
}
This will make your everything is placed from right to left if the system uses an according language. Also make sure you use start/end instead of left/right when setting up padding to make sure that all elements are aligned correctly.
For more information about the official support announcement: http://android-developers.blogspot.be/2013/03/native-rtl-support-in-android-42.html