how to populate a collectionview defined inside a caruselpage Xamarin.Forms

I have a CaruselPage and inside the DataTemplate I have put a CollectionView <CarouselPage.ItemTemplate> <DataTemplate> <ContentPage> <ContentPage.Content> <StackLayout> <CollectionView ItemsSource=”{Binding Cards}” VerticalOptions=”CenterAndExpand” HorizontalOptions=”Center” EmptyView=”Non ci sono Card Formazione” Margin=”10″ x:Name=”CV” > <CollectionView.ItemsLayout> <GridItemsLayout Orientation=”Vertical” Span=”1″ /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate> <Frame BorderColor=”Black”> <StackLayout> <Label Text=”{Binding DisciplinaCard}” Style=”{StaticResource LabelTesStyle}”/> <Label Text=”{Binding DataCard}” Style=”{StaticResource LabelTesStyle}”/> </StackLayout> </Frame> </DataTemplate>…

Details

Retrofit kotlin expected begin_object but was begin_array

Main Activity val retrofit = Retrofit.Builder() .baseUrl(“http://192.168.1.78:3000”) .addConverterFactory(GsonConverterFactory.create()) .build() val api = retrofit.create(ApiService::class.java) api.fetchLastNews().enqueue(object : Callback<List<News>>{ override fun onResponse(call: Call<List<News>>, response: Response<List<News>>) { d(“exemplo”,”onResponse”) } override fun onFailure(call: Call<List<News>>, t: Throwable) { d(“exemplo”,”onFailure”) } }) } Interface interface ApiService { @GET(“/getultimas”) fun fetchLastNews(): Call<List<News>> } Data class package com.example.navigationdrawer data class News ( val titulo:…

Details