Skip to content

Commit

Permalink
rename CircularHorizontalBTTMode
Browse files Browse the repository at this point in the history
  • Loading branch information
kHRYSTAL committed Aug 16, 2017
1 parent 8288338 commit 606981a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -20,7 +20,7 @@
import jp.wasabeef.glide.transformations.CropCircleTransformation;
import me.khrystal.library.widget.CircleRecyclerView;
import me.khrystal.library.widget.CircularHorizontalMode;
import me.khrystal.library.widget.CircularHorizontalModeBTT;
import me.khrystal.library.widget.CircularHorizontalBTTMode;
import me.khrystal.library.widget.CircularViewMode;
import me.khrystal.library.widget.CircularViewRTLMode;
import me.khrystal.library.widget.ItemViewMode;
Expand Down Expand Up @@ -111,7 +111,7 @@ public void onViewCreated(View view, Bundle savedInstanceState) {
// u can use the first argument to control the item position of the recyclerView
// and this offset need use some density util to resolve adaptation
// and the offset is relative recyclerView top abs distance
mItemViewMode = new CircularHorizontalModeBTT(600, false);
mItemViewMode = new CircularHorizontalBTTMode(600, false);
mLayoutManager = new LinearLayoutManager(getContext(), LinearLayoutManager.HORIZONTAL, false);
break;

Expand Down Expand Up @@ -152,7 +152,7 @@ public VH onCreateViewHolder(ViewGroup parent, int viewType) {
else if (mItemViewMode instanceof CircularViewRTLMode)
h = new VH(LayoutInflater.from(getContext())
.inflate(R.layout.item_c_rtl_v, parent, false));
else if (mItemViewMode instanceof CircularHorizontalModeBTT) {
else if (mItemViewMode instanceof CircularHorizontalBTTMode) {
h = new VH(LayoutInflater.from(getContext())
.inflate(R.layout.item_h_btt, parent, false));
}
Expand Down
Expand Up @@ -12,7 +12,7 @@
* email: 723526676@qq.com
*/

public class CircularHorizontalModeBTT implements ItemViewMode {
public class CircularHorizontalBTTMode implements ItemViewMode {

private int mCircleOffset = 500;
private float mDegToRad = 1.0f / 180.0f * (float) Math.PI;
Expand All @@ -21,12 +21,12 @@ public class CircularHorizontalModeBTT implements ItemViewMode {
private float mYOffset = 100;
private boolean mUseRotation = false;

public CircularHorizontalModeBTT(float yOffset, boolean useRotation) {
public CircularHorizontalBTTMode(float yOffset, boolean useRotation) {
this.mYOffset = yOffset;
this.mUseRotation = useRotation;
}

public CircularHorizontalModeBTT(int circleOffset, float degToRad,
public CircularHorizontalBTTMode(int circleOffset, float degToRad,
float scalingRatio, float translationRatio,
float yOffset, boolean useRotation) {
mCircleOffset = circleOffset;
Expand Down

0 comments on commit 606981a

Please sign in to comment.