0

As the title described, I want to pass BigDecimal type argument between the fragments while navigation. But I can't find the support of BigDecimal type.

Here is the link of the supported types from google document support types

Any way to achieve it? Thanks!

William Hu
  • 15,423
  • 11
  • 100
  • 121

1 Answers1

4

As per the BigDecimal docs, BigDecimal extends Number which implements Serializable, which means it is supported just like any other Serializable type in Navigation, as per the table you linked.

app:argType="java.math.BigDecimal"
ianhanniballake
  • 191,609
  • 30
  • 470
  • 443