Search in sources :

Example 6 with BottomNavigationView

use of android.support.design.widget.BottomNavigationView in project Android-NDK-Simples by cheng2016.

the class MainActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    mTextMessage = (TextView) findViewById(R.id.message);
    BottomNavigationView navigation = (BottomNavigationView) findViewById(R.id.navigation);
    navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);
}
Also used : BottomNavigationView(android.support.design.widget.BottomNavigationView)

Aggregations

BottomNavigationView (android.support.design.widget.BottomNavigationView)6 UiController (android.support.test.espresso.UiController)2 ViewAction (android.support.test.espresso.ViewAction)2 FragmentTransaction (android.support.v4.app.FragmentTransaction)2 View (android.view.View)2