diff --git a/library/src/main/java/com/chaychan/library/BottomBarLayout.java b/library/src/main/java/com/chaychan/library/BottomBarLayout.java index 39257ad..3a93fc0 100644 --- a/library/src/main/java/com/chaychan/library/BottomBarLayout.java +++ b/library/src/main/java/com/chaychan/library/BottomBarLayout.java @@ -43,14 +43,10 @@ public BottomBarLayout(Context context, AttributeSet attrs, int defStyleAttr) { mSmoothScroll = ta.getBoolean(R.styleable.BottomBarLayout_smoothScroll,true); ta.recycle(); - setOrientation(HORIZONTAL); } @Override public void setOrientation(int orientation) { - if (LinearLayout.VERTICAL == orientation) { - throw new IllegalArgumentException("BottomBarLayout only supports Horizontal Orientation."); - } super.setOrientation(orientation); }