docs: public static float getFraction(@NonNull final Context context,
                                      @StyleRes final int themeResourceId,
                                      @AttrRes final int resourceId, final int base,
                                      final int pbase) {
          TypedArray typedArray = null;
  
          try {
              typedArray = obtainStyledAttributes(context, themeResourceId, resourceId);
              float fraction = typedArray.getFraction(0, base, pbase, -1);
  
              if (fraction == -1) {
                  throw new NotFoundException(
                          "Resource ID #0x" + Integer.toHexString(resourceId) + " is not valid");
              }
  
              return fraction;
          } finally {
              if (typedArray != null) {
                  typedArray.recycle();
              }
          }
      }