Search in sources :

Example 1 with SlidingSearchResultsExampleFragment

use of com.arlib.floatingsearchviewdemo.fragment.SlidingSearchResultsExampleFragment in project floatingsearchview by arimorty.

the class MainActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
    NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
    navigationView.setNavigationItemSelectedListener(this);
    showFragment(new SlidingSearchResultsExampleFragment());
}
Also used : NavigationView(android.support.design.widget.NavigationView) SlidingSearchResultsExampleFragment(com.arlib.floatingsearchviewdemo.fragment.SlidingSearchResultsExampleFragment)

Aggregations

NavigationView (android.support.design.widget.NavigationView)1 SlidingSearchResultsExampleFragment (com.arlib.floatingsearchviewdemo.fragment.SlidingSearchResultsExampleFragment)1