赞
踩
/*
* @DateTime 2020/6/29 16:51
* @Author zwb
* @Des X5内核文件预览页面
public class X5TbsFileServicePage extends AppCompatActivity implements TbsReaderView.ReaderCallback {
private String tbsReaderTemp = Environment.getExternalStorageDirectory() + "/TbsReaderTemp";
TbsReaderView mTbsReaderView;
RelativeLayout mRelativeLayout;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_x5_tbs_file_service_page);
// 绑定容器
mRelativeLayout = findViewById(R.id.X5TbsView);
FileModel fileModel = new FileModel();
fileModel.setPath("/storage/emulated/0/demo/word.docx");
displayFile(fileModel);
}
public void displayFile(FileModel fileModel) {
mTbsReaderView
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。