Skip to content

Instantly share code, notes, and snippets.

@rezaiyan
Created March 14, 2018 06:57
Show Gist options
  • Save rezaiyan/6b5aaad6d445f7a1e415a2762538fae4 to your computer and use it in GitHub Desktop.
Save rezaiyan/6b5aaad6d445f7a1e415a2762538fae4 to your computer and use it in GitHub Desktop.
package me.alirezaiyan.gist;
import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.util.AttributeSet;
/**
* @author rezaiyan (alirezaiyann@gmail.com)
* @since 3/13/18 21:42.
*
*/
public class RtlLayoutManager extends LinearLayoutManager {
public RtlLayoutManager(Context context) {
super(context);
}
public RtlLayoutManager(Context context, int orientation, boolean reverseLayout) {
super(context, orientation, reverseLayout);
}
public RtlLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
}
@Override
protected boolean isLayoutRTL(){
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment