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图+流程图
-
-
-
-
-
-
-
河岸冲刷和泥沙淤积的监测国内外研究现状
十二层带中心支撑钢结构...
当代大学生慈善意识研究+文献综述
java+mysql车辆管理系统的设计+源代码
大众媒体对公共政策制定的影响
中考体育项目与体育教学合理结合的研究
电站锅炉暖风器设计任务书
乳业同业并购式全产业链...
酸性水汽提装置总汽提塔设计+CAD图纸
杂拟谷盗体内共生菌沃尔...