lrc_word = StringHelper.spiltString(strWord);
}
}
}
}
4.5 手机扩展卡访问功能
4.5.1 播放器文件浏览器界面实现
如图4.5所示。手机扩展卡界面示意图
图4.5 播放器SD卡界面示意图
SD卡界面功能实现部分代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="@drawable/list_bg">
<LinearLayout android:layout_width="fill_parent"
android:gravity="center" android:layout_height="wrap_content"
android:background="@drawable/footer_bar">
<TextView android:text="SD卡" android:id="@+id/store_card" android:textStyle="bold"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="@dimen/music_list_title"></TextView></LinearLayout>
<ListView android:id="@id/android:list" android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView android:layout_width="10px"
android:layout_height="wrap_content" />
<TextView android:id="@id/android:empty" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="@string/no_files" /></LinearLayout>
4.5.2 播放器文件浏览器功能实现
播放器文件浏览器功能部分代码实现:
private void showDialog(String msg, final File file) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(msg).setCancelable(false).setPositiveButton("确定",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
String fileName = file.getName().substring(0,
file.getName().indexOf("."));
Log.i("info", fileName);
if (query(fileName)) {
insertMusic(file);
}
- 上一篇:ASP.net+sqlserver手工艺分享网站设计与开发
- 下一篇:ASP人才招聘网站的设计与实现+ER图+流程图
-
-
-
-
-
-
-
河岸冲刷和泥沙淤积的监测国内外研究现状
十二层带中心支撑钢结构...
当代大学生慈善意识研究+文献综述
java+mysql车辆管理系统的设计+源代码
大众媒体对公共政策制定的影响
中考体育项目与体育教学合理结合的研究
电站锅炉暖风器设计任务书
乳业同业并购式全产业链...
酸性水汽提装置总汽提塔设计+CAD图纸
杂拟谷盗体内共生菌沃尔...