How should I pass in null
as default value for a String argument such as this:
<argument
android:name="profile_id"
android:defaultValue="???"
app:argType="string"
app:nullable="true" />
If the argument is nullable there should be a way to pass in null
right?
Turns out the good old @null
works
<argument
android:name="profile_id"
android:defaultValue="@null"
app:argType="string"
app:nullable="true" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With