Skip to content

Commit

Permalink
Merge pull request #5 from chnyangjie/vertical
Browse files Browse the repository at this point in the history
去掉了BottomBarLayout对orientation的限制
  • Loading branch information
chaychan authored Jan 5, 2018
2 parents bba68fc + d0bcbf0 commit b6e9a55
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit b6e9a55

Please sign in to comment.