How to set `null` as the default value for a nullable argument using SafeArgs?

前端 未结 1 883
春和景丽
春和景丽 2021-02-18 13:13

How should I pass in null as default value for a String argument such as this:



        
相关标签:
1条回答
  • 2021-02-18 13:36

    Turns out the good old @null works

    <argument
        android:name="profile_id"
        android:defaultValue="@null"
        app:argType="string"
        app:nullable="true" />
    
    0 讨论(0)
提交回复
热议问题