Bumping effect in the bottom navigation bar

xml根部局 加 android:clipChildren="false", 以我这个导航栏为例, 设置radiogroup高度为50,里面中间的买家秀radiobutton高度为80,重要的一点是要设置radiobutton的android:layout_gravity="bottom", 不然没效果,style="@style/MainRadioButton"没什么关系;
总结一句话:根布局加android:clipChildren="false",要凸出的控件设置具体高度和layout_gravity="bottom",控件的父容器设置具体高度

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:clipChildren="false"
    tools:context="com.xg.topshiyong.base.MainActivity">

    <android.support.v4.view.ViewPager
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:id="@+id/viewpager_main"
        app:layout_constraintBottom_toTopOf="@+id/rg_main"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <RadioGroup
        android:id="@+id/rg_main"
        android:layout_width="0dp"
        android:layout_height="50dp"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent">

        <RadioButton
            android:id="@+id/rb_mainpage"
            style="@style/MainRadioButton"
            android:checked="true"
            android:drawableTop="@drawable/rb_mainpage_icon"
            android:text="@string/main_page" />

        <RadioButton
            android:id="@+id/rb_ontrial"
            style="@style/MainRadioButton"
            android:drawableTop="@drawable/rb_ontrial_icon"
            android:text="@string/on_trial" />

        <RadioButton
            android:id="@+id/rb_buyshow"
            style="@style/MainRadioButton"
            android:layout_height="80dp"
            android:layout_gravity="bottom"
            android:drawableTop="@drawable/rb_buyshow_icon"
            android:text="@string/buy_show" />

        <RadioButton
            android:id="@+id/rb_luckdraw"
            style="@style/MainRadioButton"
            android:drawableTop="@drawable/rb_luckdraw_icon"
            android:text="@string/luck_draw" />

        <RadioButton
            android:id="@+id/rb_center"
            style="@style/MainRadioButton"
            android:drawableTop="@drawable/rb_center_icon"
            android:text="@string/center" />
    </RadioGroup>
</android.support.constraint.ConstraintLayout>