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);
上一篇:ASP.net+sqlserver手工艺分享网站设计与开发
下一篇:ASP人才招聘网站的设计与实现+ER图+流程图

Android手机考勤平台的设计与实现

基于android的环境信息管理系统设计

基于激光超声检测金属材...

Android全国天气移动终端应用程序设计研究

基于MOODLE平台的在线交互式学习设计

基于离散事件系统Petri网模型的可达图研究

基于高斯过程动态模型的时序数据恢复方法

STC89C52单片机NRF24L01的无线病房呼叫系统设计

从政策角度谈黑龙江對俄...

浅谈高校行政管理人员的...

压疮高危人群的标准化中...

基于Joomla平台的计算机学院网站设计与开发

上海居民的社会参与研究

酵母菌发酵生产天然香料...

提高教育质量,构建大學生...

AES算法GPU协处理下分组加...

浅论职工思想政治工作茬...