code: public void setPadding(@Nullable String paddingString) {
          if (!TextUtils.isEmpty(paddingString)) {
              // remove leading and ending '[' ']'
              try {
                  paddingString = paddingString.trim().substring(1, paddingString.length() - 1);
                  String paddingStringArray[] = paddingString.split(",");
                  int size = paddingStringArray.length > 4 ? 4 : paddingStringArray.length;
                  for (int i = 0; i < size; i++) {
                      String paddingStr = paddingStringArray[i];
                      try {
                          if (!TextUtils.isEmpty(paddingStr)) {
                              padding[i] = parseSize(paddingStr.trim().replace("\"", ""), 0);
                          } else {
                              padding[i] = 0;
                          }
                      } catch (NumberFormatException ignored) {
                          padding[i] = 0;
                      }
                  }
                  Arrays.fill(padding, size, padding.length, padding[size - 1]);
              } catch (Exception e) {
                  Arrays.fill(padding, 0);
              }
          }
      }
docs: Parse padding with string like '[10,10,10,10]'
  @param paddingString