Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Check what fragment is shown in BaseAdapter

$
0
0

Hi,

I am new in xamarin. Can any one help?. I want to ask about how to check what fragment is shwon in BaseAdapter.

I am using "Contents cont = (Contents) FragmentManager.FindFragmentById (Resource.Id.main_container);"
in fragment class

it work but when I am using this same code in BaseAdapter it give error "Cannot convert type Android.App.Fragment to ProjectName.Contents".


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>