研究日志android - gmtalang/test GitHub Wiki

  • 1.自定义toast
  • 2.SoundPool
  • load完成之后,play并没有声音,解决监听soundPool.setOnLoadCompleteListener(new SoundPool.OnLoadCompleteListener() { @Override
  • public void onLoadComplete(SoundPool soundPool, int sampleId, int status)
  • { soundPool.play(soundID, 0.6f, 0.6f, 1, 0, 1); } }
  • );