saulmm / CoordinatorBehaviorExample

2.71k stars 590 forks source link

Right-To-Left Support #28

Open tsadoklf opened 8 years ago

tsadoklf commented 8 years ago

The sample code does not support rtl support.

abbasalim commented 7 years ago

hello, for Rtl: in toolbar layout in xml change 'title' textview width to match_parent and in AvatarImageBehavior change mFinalXPosition in maybeInitProperties method to this :
if (mFinalXPosition == 0) //changed for RTL//-50 needed for Image position in toolbar mFinalXPosition = mContext. getResources().getDisplayMetrics().widthPixels-50;//mContext.getResources().getDimensionPixelOffset(R.dimen.abc_action_bar_content_inset_material) + ((int) mCustomFinalHeight / 2);//// TODO: 16/11/2016 اگه خواستید فارسی بنویسم ;)

3llomi commented 7 years ago

@abbasalim thanks man ,it's working :)