赞
踩
options.inputType = VrPanoramaView.Options.TYPE_MONO;
vrpview.setStereoModeButtonEnabled(false);//隐藏全屏模式
vrpview.setInfoButtonEnabled(false);//隐藏信息按钮
String uri = “pic.jpg”;
vrpview.loadImageFromByteArray(makeimageToByte(uri), options);
vrpview.setEventListener(new VrPanoramaEventListener(){
@SuppressLint(“ShowToast”)
@Override
public void onLoadSuccess() {
//加载成功
super.onLoadSuccess();
Toast.makeText(MainActivity.this, “加载完成”, Toast.LENGTH_SHORT).show();
}
@SuppressLint(“ShowToast”)
@Override
public void onLoadError(String errorMessage) {
//加载失败
super.onLoadError(errorMessage);
Toast.makeText(MainActivity.this, “加载失败”, Toast.LENGTH_SHORT).show();
}
@SuppressLint(“ShowToast”)
@Override
public void onClick() {
//点击事件
super.onClick()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。