CoordinatorBehaviorExample icon indicating copy to clipboard operation
CoordinatorBehaviorExample copied to clipboard

Right-To-Left Support

Open tsadoklf opened this issue 8 years ago • 2 comments

The sample code does not support rtl support.

tsadoklf avatar Sep 06 '16 08:09 tsadoklf

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 اگه خواستید فارسی بنویسم ;)

abbasalim avatar Nov 17 '16 06:11 abbasalim

@abbasalim thanks man ,it's working :)

3llomi avatar Jan 12 '17 19:01 3llomi