Fixed
Status Update
Comments
il...@google.com <il...@google.com> #2
You'd want to use android:defaultValue="0.0"
for a float, which would be recognized as a Float type by Android's TypedValue
class (which is what NavInflater
uses).
I'll leave this open as part of our androidx-bug-bounty
hotlist in case someone wants to NavInflater
code to allow integer default types with argType="float"
.
ku...@gmail.com <ku...@gmail.com> #3
ku...@gmail.com <ku...@gmail.com> #4
This is fixed now, can be closed
jb...@google.com <jb...@google.com> #5
Thank you for the contribution! This fix will be available as a part of the next Navigation release.
Description
Component used: Navigation Version used: 2.3.1
When i use in navigation graph float attribute with default value like this:
I get this error: org.xmlpull.v1.XmlPullParserException: Type is float but found integer: 0
When i try add 'F' char like this:
I get another error, because generated NavDirections already added the 'F' char and generated code contains: