navigation/common/src/main/java/androidx/navigation/NavDestination.java
@CallSuper
    public void onInflate(@NonNull Context context, @NonNull AttributeSet attrs) {
        final TypedArray a = context.getResources().obtainAttributes(attrs,
                R.styleable.Navigator);
        setId(a.getResourceId(R.styleable.Navigator_android_id, 0));
        setLabel(a.getText(R.styleable.Navigator_android_label));
        a.recycle();
    }
/**
     * Called when inflating a destination from a resource.
     *
     * @param context local context performing inflation
     * @param attrs attrs to parse during inflation
     */
Called when inflating a destination from a resource.
@param context local context performing inflation
@param attrs attrs to parse during inflation
Called when inflating a destination from a resource . @param context local context performing inflation @param attrs attrs to parse during inflation
@CallSuper
    public void onInflate(@NonNull Context context, @NonNull AttributeSet attrs) {
        final TypedArray a = context.getResources().obtainAttributes(attrs,
                R.styleable.Navigator);
        setId(a.getResourceId(R.styleable.Navigator_android_id, 0));
        setLabel(a.getText(R.styleable.Navigator_android_label));
        a.recycle();
    }
@ CallSuper public void onInflate ( @ NonNull Context context , @ NonNull AttributeSet attrs ) { final TypedArray a = context . getResources ( ) . obtainAttributes ( attrs , R . styleable . Navigator ) ; setId ( a . getResourceId ( R . styleable . Navigator_android_id , 0 ) ) ; setLabel ( a . getText ( R . styleable . Navigator_android_label ) ) ; a . recycle ( ) ; }
Called when inflating a destination from a resource.
Called when inflating a destination from a resource .