Search in sources :

Example 1 with SongsListAdapter

use of io.hefuyi.listener.ui.adapter.SongsListAdapter in project ListenerMusicPlayer by hefuyicoder.

the class PlayRankingFragment method onCreate.

@Override
public void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    injectDependences();
    mPresenter.attachView(this);
    mAdapter = new SongsListAdapter((AppCompatActivity) getActivity(), null, Constants.NAVIGATE_ALLSONG, true);
}
Also used : AppCompatActivity(android.support.v7.app.AppCompatActivity) SongsListAdapter(io.hefuyi.listener.ui.adapter.SongsListAdapter)

Example 2 with SongsListAdapter

use of io.hefuyi.listener.ui.adapter.SongsListAdapter in project ListenerMusicPlayer by hefuyicoder.

the class SongsFragment method onCreate.

@Override
public void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    injectDependences();
    mPresenter.attachView(this);
    mPreferences = PreferencesUtility.getInstance(getActivity());
    if (getArguments() != null) {
        action = getArguments().getString(Constants.PLAYLIST_TYPE);
    }
    mAdapter = new SongsListAdapter((AppCompatActivity) getActivity(), null, action, true);
}
Also used : AppCompatActivity(android.support.v7.app.AppCompatActivity) SongsListAdapter(io.hefuyi.listener.ui.adapter.SongsListAdapter)

Example 3 with SongsListAdapter

use of io.hefuyi.listener.ui.adapter.SongsListAdapter in project ListenerMusicPlayer by hefuyicoder.

the class FolderSongsFragment method onCreate.

@Override
public void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    injectDependences();
    mPresenter.attachView(this);
    if (getArguments() != null) {
        path = getArguments().getString(Constants.FOLDER_PATH);
    }
    mAdapter = new SongsListAdapter((AppCompatActivity) getActivity(), null, Constants.NAVIGATE_ALLSONG, true);
}
Also used : AppCompatActivity(android.support.v7.app.AppCompatActivity) SongsListAdapter(io.hefuyi.listener.ui.adapter.SongsListAdapter)

Aggregations

AppCompatActivity (android.support.v7.app.AppCompatActivity)3 SongsListAdapter (io.hefuyi.listener.ui.adapter.SongsListAdapter)3