Search in sources :

Example 1 with SearchTabPagerFragment

use of com.wm.remusic.fragmentnet.SearchTabPagerFragment in project remusic by aa112901.

the class NetSearchWordsActivity method onQueryTextSubmit.

@Override
public boolean onQueryTextSubmit(final String query) {
    hideInputManager();
    FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
    SearchTabPagerFragment fragment = SearchTabPagerFragment.newInstance(0, query);
    ft.replace(R.id.search_frame, fragment).commitAllowingStateLoss();
    return true;
}
Also used : FragmentTransaction(android.support.v4.app.FragmentTransaction) SearchTabPagerFragment(com.wm.remusic.fragmentnet.SearchTabPagerFragment)

Aggregations

FragmentTransaction (android.support.v4.app.FragmentTransaction)1 SearchTabPagerFragment (com.wm.remusic.fragmentnet.SearchTabPagerFragment)1