我看过使用fb litho的新闻提要示例。没有任何使用石印的视频播放示例。我们需要一个示例,例如带有视频播放的新闻提要,或者您可以提供任何示例或建议在石印版中添加exoplayer。
答案 0 :(得分:0)
向Litho添加任何其他自定义视图没有太大区别。您需要为public class SmtpIntegrationForm extends IntegrationCommonSection {
private static final By integrationServerBy = Locators.findBy("settings_page_integrations_page_integration_server_name_txt");
private static final By integrationPortBy = Locators.findBy("settings_page_integrations_page_integration_port_txt");
private static final By integrationFromAddressBy = Locators.findBy("settings_page_integrations_page_integration_from_address_txt");
SmtpIntegrationForm(DriverWrapper driver){
super(driver);
}
SmtpIntegrationForm setIntegrationServer(String server){
setText(integrationServerBy, server);
return this;
}
SmtpIntegrationForm setIntegrationPort(String port){
setText(integrationPortBy, port);
return this;
}
SmtpIntegrationForm setIntegrationFromAddress(String address){
setText(integrationFromAddressBy, address);
return this;
}
SmtpIntegrationForm chooseIntegration(IntegrationType integrationType){
clickButton(By.cssSelector("li[class~='qa_" + integrationType.value + "']"));
return this;
}
}
创建一个MountSpec
,然后将该MountSpec作为组件添加。
有关MountSpecs的更多信息。
以下是ProgressBar的MountSpec实现的一个很好的示例:ProgressSpec