I am trying to pass a "@string" and "@stringarray" to my viewstub databinding via xml, but it does not work. I get the following error message:
C:\Users\censored\AndroidStudioProjects\example\app\build\generated\source\kapt\debug\com\example\app\databinding\AppStandardContactFormBindingImpl.java:943: error: cannot find symbol
            if (this.appDefaultCompanyNameEt.isInflated()) this.appDefaultCompanyNameEt.getBinding().setVariable(BR.hint, appDefaultCompanyNameEt.getResources().getString(R.string.app_contact_form_company_name));
                                                                                                                                                 ^
  symbol:   method getResources()
  location: variable appDefaultCompanyNameEt of type ViewStubProxy
ViewStub inflated layout
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <data>
        <variable
            name="vBility"
            type="Boolean" />
        <variable
            name="vForm"
            type="String" />
        <variable
            name="hint"
            type="String" />
        <variable
            name="iType"
            type="Integer" />
        <variable
            name="mText"
            type="String" />
    </data>
    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="@{vBility}">
        <com.example.app.presentation.util.view.FixedInputTextLayout
            android:id="@+id/app_default_et"
            style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
            android:layout_width="@dimen/wrapContent"
            android:layout_height="wrap_content"
            android:hint="@{hint}"
            android:visibility="@{vBility}"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:validate_form="@{vForm}">
            <com.google.android.material.textfield.TextInputEditText
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:inputType="@{iType}"
                android:text="@={mText}"
                android:textSize="@dimen/font_text_large" />
        </com.example.app.presentation.util.view.FixedInputTextLayout>
    </androidx.constraintlayout.widget.ConstraintLayout>
</layout>
Using Layout inside viewstub
<ViewStub
    android:id="@+id/app_default_company_name_et"
    android:layout_width="@dimen/wrapContent"
    android:layout_height="wrap_content"
    android:layout_marginTop="8dp"
    android:layout_marginEnd="8dp"
    android:inflatedId="@+id/app_default_company_name_et"
    android:layout="@layout/app_standard_textinputlayout"
    android:visibility="@{cValidator.companySwitchState}"
    app:vBility="@{cValidator.companySwitchState}"
    app:vForm="@{cValidator.etCompanyNameEM}"
    app:hint="@{@string/app_contact_form_company_name}" <!-- THIS IS GIVING ME THE ERROR -->
    app:iType="@{0x00000001}"
    app:mText="@{cValidator.etCompanyName}"
    app:layout_constraintEnd_toStartOf="@+id/app_default_company_ust_et"
    app:layout_constraintHorizontal_bias="0.5"
    app:layout_constraintStart_toStartOf="@+id/margin_left"
    app:layout_constraintTop_toBottomOf="@+id/calibrate_user_data_company_text" />
When I change app:hint="@{@string/app_contact_form_company_name}" with app:hint="@{someClass.someString}" it works. Does that mean, that I can't directly pass any string to my databinding if it is a viewstub?
 
    
