private SearchActivityBinding(Activity activity, int layoutId) { activity.SetContentView(layoutId); searchPlacesAndCategoriesView = activity.FindViewById <SearchPlacesAndCategoriesView>( Resource.Id.search_places_and_categories_view); searchToolbar = activity.FindViewById <SearchToolbar>(Resource.Id.search_toolbar); drawer = activity.FindViewById <DrawerLayout>(Resource.Id.drawer); navView = activity.FindViewById <NavigationView>(Resource.Id.nav_view); recyclerView = activity.FindViewById <RecyclerView>(Resource.Id.recycler_view); var decorView = activity.Window.DecorView; Root = (ViewGroup)decorView.FindViewById(global::Android.Resource.Id.Content); }
public static SearchPlacesAndCategoriesViewBinding Inflate(LayoutInflater inflater, int layoutId, SearchPlacesAndCategoriesView view, bool attachToRoot) { return new SearchPlacesAndCategoriesViewBinding(inflater, layoutId, view, attachToRoot); }
public SearchPlacesAndCategoriesViewBinding(LayoutInflater inflater, int layoutId, SearchPlacesAndCategoriesView view, bool attachToRoot) { Root = inflater.Inflate(layoutId, view, attachToRoot); recyclerView = Root.FindViewById<RecyclerView>(Resource.Id.recycler_view); }