Closed hugoterelle closed 8 years ago
Thanks for your answer but I have the following code:
In my axml file:
<MvxLinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:id="@+id/scoringtemplate_detail" local:MvxBind="ItemsSource Scorings" />
And in my View
_layout = FindViewById<MvxLinearLayout>(Resource.Id.scoringtemplate_detail);
So, I don't create my MvxLinearLayout by code
@hugoterelle Then create a custom LinearLayout where you pass in your own adapter in the constructor and then reference that new class in your axml.
@Dexyon That's what I did but I think that's not a straightforward solution. But first of all, thanks for your support!
Alternatively you could make a pull request to enable setting the adapter.
Hi,
I would like to change the Adapter of the MvxLinearLayout (I need dynamic templates). But the property of the Adapter is "protected set; get;" Is it an issue?
Kind regards, Hugo Terelle