当前位置: 首页>>代码示例>>Java>>正文


Java MusicsListEntity类代码示例

本文整理汇总了Java中com.github.obsessive.simplifyreader.bean.MusicsListEntity的典型用法代码示例。如果您正苦于以下问题:Java MusicsListEntity类的具体用法?Java MusicsListEntity怎么用?Java MusicsListEntity使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MusicsListEntity类属于com.github.obsessive.simplifyreader.bean包,在下文中一共展示了MusicsListEntity类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initParameter

import com.github.obsessive.simplifyreader.bean.MusicsListEntity; //导入依赖的package包/类
private void initParameter(Context context) {
    mContext = context;

    mMediaPlayer = new MediaPlayer();

    mMediaPlayer.setOnErrorListener(this);
    mMediaPlayer.setOnPreparedListener(this);
    mMediaPlayer.setOnCompletionListener(this);
    mMediaPlayer.setOnBufferingUpdateListener(this);

    mMusicList = new ArrayList<MusicsListEntity>();

    mCurPlayIndex = -1;
    mPlayState = MusicPlayState.MPS_LIST_EMPTY;
    mPLayMode = MusicPlayMode.MPM_LIST_LOOP_PLAY;

    mRandom = new Random();
    mRandom.setSeed(System.currentTimeMillis());
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:20,代码来源:MusicPlayer.java

示例2: refreshMusicList

import com.github.obsessive.simplifyreader.bean.MusicsListEntity; //导入依赖的package包/类
public void refreshMusicList(MusicsListEntity entity) {
    if (entity == null) {
        return;
    }

    mMusicList.add(entity);

    if (mMusicList.size() == 0) {
        mPlayState = MusicPlayState.MPS_LIST_EMPTY;
        mCurPlayIndex = -1;
        return;
    }

    mPlayState = MusicPlayState.MPS_LIST_FULL;
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:16,代码来源:MusicPlayer.java

示例3: onReceive

import com.github.obsessive.simplifyreader.bean.MusicsListEntity; //导入依赖的package包/类
@Override
public void onReceive(Context context, Intent intent) {
    String action = intent.getAction();
    if (null != action && !TextUtils.isEmpty(action)) {
        if (action.equals(Constants.ACTION_MUSIC_BUNDLE_BROADCAST)) {
            Bundle extras = intent.getExtras();
            if (null != extras) {
                MusicsListEntity entity = extras.getParcelable(Constants.KEY_MUSIC_PARCELABLE_DATA);
                int totalDuration = extras.getInt(Constants.KEY_MUSIC_TOTAL_DURATION);

                mMusicsPresenter.refreshPageInfo(entity, totalDuration);
            }
        }
    }
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:16,代码来源:MusicsFragment.java

示例4: refreshMusicList

import com.github.obsessive.simplifyreader.bean.MusicsListEntity; //导入依赖的package包/类
public static void refreshMusicList(List<MusicsListEntity> listData) {
    if (null != listData && !listData.isEmpty()) {
        mPlayer.refreshMusicList(listData.get(0));
    }
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:6,代码来源:MusicPlayService.java

示例5: refreshPageInfo

import com.github.obsessive.simplifyreader.bean.MusicsListEntity; //导入依赖的package包/类
@Override
public void refreshPageInfo(MusicsListEntity entity, int totalDuration) {
    mMusicsView.refreshPageInfo(entity, totalDuration);
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:5,代码来源:MusicsPresenterImpl.java

示例6: refreshPageInfo

import com.github.obsessive.simplifyreader.bean.MusicsListEntity; //导入依赖的package包/类
void refreshPageInfo(MusicsListEntity entity, int totalDuration); 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:2,代码来源:MusicsView.java


注:本文中的com.github.obsessive.simplifyreader.bean.MusicsListEntity类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。