Android初学第83天

【Android初学第83天】少年乘勇气,百战过乌孙。这篇文章主要讲述Android初学第83天相关的知识,希望能为你提供帮助。
android初学第83天20_MVVM
代码 BeatBox
Sound.java

package com.bignerdranch.android.beatbox; public class Sound { private String mAssetPath; private String mName; public Sound(String assetPath) { mAssetPath = assetPath; String[] components = assetPath.split("/"); String filename = components[components.length - 1]; mName = filename.replace(".wav", ""); }public String getAssetPath() { return mAssetPath; }public String getName() { return mName; } }


    推荐阅读