最佳答案
我想在机器人中使用 ViewStub,所以请帮助我。我已经创建了
ViewStub stub = new ViewStub;
View inflated = stub.inflate();
如何以编程方式使用它?