摘要:
在程序里弹出一个小窗口,像系统的MediaController一样,具体做法:先在mail.xml的layout布局里加一个id,这个到后面会用到的,1 <?xml version="1.0" encoding="utf-8"?>2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"3 android:orientation="vertical"4 android:layout_width="f 阅读全文
摘要:
调大声:1 AudioManager audioMa=(AudioManager)this.getSystemService(Context.AUDIO_SERVICE);2 audioMa.adjustStreamVolume(AudioManager.STREAM_MUSIC,AudioManager.ADJUST_RAISE,AudioManager.FX_FOCUS_NAVIGATION_UP);调小声:1 AudioManager audioMa=(AudioManager)this.getSystemService(Context.AUDIO_SERVICE);2 audioMa. 阅读全文