bottombar.init(getSupportFragmentManager()) .setFontSize(8) .setImgSize(50,50) .setChangeColor(Color.RED,Color.DKGRAY) .setTabPadding(4,6,10) .addTabItem("首页",R.drawable.choice_icon,Fragment01.class) .addTabItem("我的",R.drawable.new_icon,Fragment02.class) .isShowDivider(false);
<stroke android:color="#f00" android:width="1dp"></stroke> <corners android:radius="50dp"></corners>
<com.hjm.bottomtabbar.BottomTabBar android:id="@+id/bottombar" android:layout_width="match_parent" android:layout_height="match_parent"> </com.hjm.bottomtabbar.BottomTabBar>