assets文件中要以 key=value的形式来写
Properties prop = new Properties(); //配置文件
InputStream is = mContext.getAssets().open(“文件名字”);//获取文件流
prop.load(is); //将流加载到配置文件中
String value = prop.getProperty(key, null); //拿着key值获取到value值
assets文件中要以 key=value的形式来写
Properties prop = new Properties(); //配置文件
InputStream is = mContext.getAssets().open(“文件名字”);//获取文件流
prop.load(is); //将流加载到配置文件中
String value = prop.getProperty(key, null); //拿着key值获取到value值