Issue
I want to implement the safe-args plugin for Android Navigation.
This works fine for integers and strings, however I am unable to get generated code for long.
Is this possible?
I have tried:
<fragment
android:id="@+id/myFragment"
android:name="com.x.app.y.MyFragment"
android:label="fragment_mine"
tools:layout="@layout/fragment_mine">
<argument
android:name="row_id"
app:type="long"/>
</fragment>
But this generates code for a string.
Here are my options:
Here is the behavior:
- inferred =>
String
- string =>
String
- integer =>
int
- reference =>
int
Solution
The list of types in the UI is the complete list of values that are currently supported by the Navigation Safe Args, so there is no support for longs in the current 1.0.0-alpha01
release.
There is an existing feature request to add additional supported types, with long being one of the requested types.
Answered By - ianhanniballake
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.