本文整理汇总了Java中com.android.SdkConstants.FD_RES属性的典型用法代码示例。如果您正苦于以下问题:Java SdkConstants.FD_RES属性的具体用法?Java SdkConstants.FD_RES怎么用?Java SdkConstants.FD_RES使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.android.SdkConstants
的用法示例。
在下文中一共展示了SdkConstants.FD_RES属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPath
@Override
public String getPath(int pathId) {
switch (pathId) {
case SKINS:
return mLocation + SdkConstants.OS_SKINS_FOLDER;
case DOCS:
return mLocation + SdkConstants.FD_DOCS + File.separator
+ SdkConstants.FD_DOCS_REFERENCE;
case LAYOUT_LIB:
if (mHasRenderingLibrary) {
return mLocation + SdkConstants.FD_DATA + File.separator
+ SdkConstants.FN_LAYOUTLIB_JAR;
}
return mBasePlatform.getPath(pathId);
case RESOURCES:
if (mHasRenderingResources) {
return mLocation + SdkConstants.FD_DATA + File.separator
+ SdkConstants.FD_RES;
}
return mBasePlatform.getPath(pathId);
case FONTS:
if (mHasRenderingResources) {
return mLocation + SdkConstants.FD_DATA + File.separator
+ SdkConstants.FD_FONTS;
}
return mBasePlatform.getPath(pathId);
case SAMPLES:
// only return the add-on samples folder if there is actually a sample (or more)
File sampleLoc = new File(mLocation, SdkConstants.FD_SAMPLES);
if (sampleLoc.isDirectory()) {
File[] files = sampleLoc.listFiles(new FileFilter() {
@Override
public boolean accept(File pathname) {
return pathname.isDirectory();
}
});
if (files != null && files.length > 0) {
return sampleLoc.getAbsolutePath();
}
}
//$FALL-THROUGH$
default :
return mBasePlatform.getPath(pathId);
}
}