Mam układ z niektórych poglądów, jeden z nich ma identyfikator title_whalemare
Kotlin przedłużenie syntetyczny do widzenia
import kotlinx.android.synthetic.main.controller_settings.*
import kotlinx.android.synthetic.main.view_double_text.*
class MainSettingsController : BaseMvpController<MvpView, MvpPresenter>() {
val title: TextView = title_whalemare
override fun getLayout(): Int {
return R.layout.controller_settings
}
}
próbuję odnaleźć ją kotlin extensions
, ale nie mogę, bo pojawia się następujący błąd
Żadna z następujących kandydatów stosuje się ze względu na typ odbiornika niedopasowania
controller_settings.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/title_whalemare"/>
</LinearLayout>
Gdzie jest mój błąd?