code: public static void register(Context context, String name) {
          final Resources res = context.getResources();
          int androidId = res.getIdentifier(name, "layout", "android");
          int appId = res.getIdentifier(name, "layout", context.getPackageName());
          if (androidId != 0 && appId != 0) {
              register(androidId, appId);
          } else {
              HoloEverywhere.warn("Failed to register layout remapping:\n" +
                      "  Android ID: 0x%8x\n" +
                      "  Application ID: 0x%8x",
                      androidId, appId);
          }
      }
docs: Resolve ids for given name in each package (android and application) and then call {@link #register(int, int)}