提交 d0bcbf06 编写于 作者: 穆弋's avatar 穆弋

BottomBarLayout support vertical orientation

上级 60341f65
......@@ -39,14 +39,10 @@ public class BottomBarLayout extends LinearLayout implements ViewPager.OnPageCha
public BottomBarLayout(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
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.
先完成此消息的编辑!
想要评论请 注册