未验证 提交 b6e9a556 编写于 作者: C chaychan 提交者: GitHub

Merge pull request #5 from chnyangjie/vertical

去掉了BottomBarLayout对orientation的限制
......@@ -43,14 +43,10 @@ public class BottomBarLayout extends LinearLayout implements ViewPager.OnPageCha
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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册