Created
March 14, 2018 06:57
-
-
Save rezaiyan/6b5aaad6d445f7a1e415a2762538fae4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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