本文整理了Java中org.robolectric.res.Qualifiers.getConfig
方法的一些代码示例,展示了Qualifiers.getConfig
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Qualifiers.getConfig
方法的具体详情如下:
包路径:org.robolectric.res.Qualifiers
类名称:Qualifiers
方法名:getConfig
暂无
代码示例来源:origin: robolectric/robolectric
public ResTable_config getConfig() {
return qualifiers.getConfig();
}
代码示例来源:origin: robolectric/robolectric
@Nonnull
private static TypedResource<String> createStringTypedResource(String str, String qualifiersStr) {
XmlContext mockXmlContext = mock(XmlContext.class);
Qualifiers qualifiers = Qualifiers.parse(qualifiersStr);
when(mockXmlContext.getQualifiers()).thenReturn(qualifiers);
when(mockXmlContext.getConfig()).thenReturn(qualifiers.getConfig());
return new TypedResource<>(str, ResType.CHAR_SEQUENCE, mockXmlContext);
}
代码示例来源:origin: robolectric/robolectric
static void applyToConfiguration(Qualifiers qualifiers, int apiLevel,
Configuration configuration, DisplayMetrics displayMetrics) {
ResTable_config resTab = qualifiers.getConfig();
代码示例来源:origin: org.robolectric/resources
public ResTable_config getConfig() {
return qualifiers.getConfig();
}
代码示例来源:origin: org.robolectric/shadows-framework
static void applyToConfiguration(Qualifiers qualifiers, int apiLevel,
Configuration configuration, DisplayMetrics displayMetrics) {
ResTable_config resTab = qualifiers.getConfig();
内容来源于网络,如有侵权,请联系作者删除!