editor.putString("order_Play", "is_Order");
editor.putString("random_Play", null);}
if (random_Play.isChecked()) {
editor.putString("sigle_Play", null);
editor.putString("order_Play", null);
editor.putString("random_Play", "is_Random");}
if (lyLrc.isChecked()) {
editor.putString("lyLrc", "is_Show");}
if (!lyLrc.isChecked()) {
editor.putString("lyLrc", null);}
editor.commit();
Intent intent = new Intent();
setResult(4, intent);
finish();
} else if (event.getAction() == MotionEvent.ACTION_UP) {
v.setBackgroundResource(R.drawable.share);}
return false;}
};
}
4.4.3 歌词显示实现
播放器歌词显示功能实现代码:
private void showLrc(String musicName) {
if ("is_Show".equals(lrc_Show)) {
String strTime; String strWord;
String musicTitle;
if (mplayer.isPlaying())
LrcShow.showLrc(musicName, MainPlayActivity.this);
SharedPreferences lrc_sp = getSharedPreferences("LRC_SHOW",
MODE_WORLD_READABLE);
if (lrc_sp != null) {
strTime = lrc_sp.getString("LRC_TIME", null);
strWord = lrc_sp.getString("LRC_WORD", null);
musicTitle = lrc_sp.getString("MUSIC_TITLE", null);
if ((strTime != null) && (strWord != null)
&& musicTitle.equals(musicName)) {
Log.i("info", musicTitle + "......." + musicName);
lrc_time = StringHelper.spiltString(strTime);
- 上一篇:ASP.net+sqlserver手工艺分享网站设计与开发
- 下一篇:ASP人才招聘网站的设计与实现+ER图+流程图
-
-
-
-
-
-
-
河岸冲刷和泥沙淤积的监测国内外研究现状
十二层带中心支撑钢结构...
当代大学生慈善意识研究+文献综述
java+mysql车辆管理系统的设计+源代码
大众媒体对公共政策制定的影响
中考体育项目与体育教学合理结合的研究
电站锅炉暖风器设计任务书
乳业同业并购式全产业链...
酸性水汽提装置总汽提塔设计+CAD图纸
杂拟谷盗体内共生菌沃尔...