菜单
  

        android:layout_width="wrap_content"android:layout_height="wrap_content"></RadioButton>
                <RadioButton android:text="顺序播放" android:id="@+id/order_play"
    android:layout_width="wrap_content" android:layout_height="wrap_content"></RadioButton>
                <RadioButton android:text="随机播放" android:id="@+id/random_play"
                    android:checked="true" android:layout_width="wrap_content"
                    android:layout_height="wrap_content"></RadioButton>
            </RadioGroup>
        </LinearLayout>
        <LinearLayout android:orientation="horizontal"
            android:layout_width="wrap_content" android:gravity="center_vertical"
            android:layout_height="wrap_content">
            <TextView android:text="歌词显示" android:id="@+id/setting"
                android:textSize="@dimen/text_size" android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
            <ToggleButton android:text="" android:id="@+id/ly_lrc"
                android:checked="false" android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
        </LinearLayout>
        <TextView android:layout_width="fill_parent"
            android:layout_height="150px"></TextView>
    4.4.2 播放器设置功能实现
    播放器设置功能实现代码:
    public class PlaySetting extends Activity {
        OnTouchListener setting_bt_Listener = new OnTouchListener() {
            public boolean onTouch(View v, MotionEvent event) {
                if (event.getAction() == MotionEvent.ACTION_DOWN) {
                    v.setBackgroundResource(R.drawable.share_pressed);
                    SharedPreferences sp = getSharedPreferences("SET_MSG",
                            MODE_WORLD_WRITEABLE);
                    SharedPreferences.Editor editor = sp.edit();
                    if (sigle_Play.isChecked()) {
                        editor.putString("sigle_Play", "is_Sigle");
                        editor.putString("order_Play", null);
                        editor.putString("random_Play", null);}
                    if (order_Play.isChecked()) {
                        editor.putString("sigle_Play", null);
  1. 上一篇:ASP.net+sqlserver手工艺分享网站设计与开发
  2. 下一篇:ASP人才招聘网站的设计与实现+ER图+流程图
  1. 基于MATLAB的图像增强算法设计

  2. 基于Kinect的手势跟踪与识别算法设计

  3. JAVA基于安卓平台的医疗护工管理系统设计

  4. 基于核独立元分析的非线...

  5. 基于Hadoop的制造过程大数据存储平台构建

  6. 基于安卓系统的测量软件...

  7. 基于VC++的GIS矢量图形系统开发

  8. 河岸冲刷和泥沙淤积的监测国内外研究现状

  9. 十二层带中心支撑钢结构...

  10. 当代大学生慈善意识研究+文献综述

  11. java+mysql车辆管理系统的设计+源代码

  12. 大众媒体对公共政策制定的影响

  13. 中考体育项目与体育教学合理结合的研究

  14. 电站锅炉暖风器设计任务书

  15. 乳业同业并购式全产业链...

  16. 酸性水汽提装置总汽提塔设计+CAD图纸

  17. 杂拟谷盗体内共生菌沃尔...

  

About

751论文网手机版...

主页:http://www.751com.cn

关闭返回