0
I am with a problem is a layout I am developing, this is my Activity for customer registration and I have only in it a Bottomnavigationview, and a Linearlayout that I will replace with a Fragment
-
<LinearLayout android:id="@+id/fragment_trocar" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <android.support.design.widget.BottomNavigationView android:id="@+id/bottomNavigatintoonCadastroCliente" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:background="@drawable/custom_button_line" android:elevation="8dp" app:itemIconTint="@color/colorBlack" app:itemTextColor="@color/colorBlack" app:menu="@menu/menu_bottom_cadastro_cliente" /> </LinearLayout>
Fragmentacadastrocliente
Customer registration.java.
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_cadastro_cliente); FragmentManager fragmentManager = getFragmentManager(); FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); fragmentTransaction.replace(R.id.fragment_trocar, new CadastroClienteFragment()); fragmentTransaction.commit(); } public void iniciarComponentes() { bottomNavigatintoonCadastroCliente = (BottomNavigationView) findViewById(R.id.bottomNavigatintoonCadastroCliente); }
}
What I need to do to fix my Layout to appear my Bottomnavigationview at the bottom of the screen?
That’s exactly what it was, vlw :)
– rodrigo.oliveira