public WatchLaterVideoRowAdapter(Activity context, string type = "Normal") { HasStableIds = true; ActivityContext = context; LibrarySynchronizer = new LibrarySynchronizer(context); Type = type; }
public RowAlbumsAdapter(Activity context) { try { ActivityContext = context; HasStableIds = true; LibrarySynchronizer = new LibrarySynchronizer(context); } catch (Exception e) { Console.WriteLine(e); } }
public SubscriptionsAdapter(Activity context) { try { ActivityContext = context; GlobalContext = TabbedMainActivity.GetInstance(); LibrarySynchronizer = new LibrarySynchronizer(context); } catch (Exception e) { Console.WriteLine(e); } }
public HPlaylistAdapter(Activity context, bool showMore = false) { try { ActivityContext = context; HasStableIds = true; ShowMore = showMore; LibrarySynchronizer = new LibrarySynchronizer(context); } catch (Exception e) { Console.WriteLine(e); } }
public HPlaylistAdapter(Activity context, bool showMore = false) { try { ActivityContext = context; HasStableIds = true; ShowMore = showMore; var glideRequestOptions = new RequestOptions().Error(Resource.Drawable.ImagePlacholder).Placeholder(Resource.Drawable.ImagePlacholder).SetDiskCacheStrategy(DiskCacheStrategy.All).SetPriority(Priority.High); FullGlideRequestBuilder = Glide.With(context).AsBitmap().Apply(glideRequestOptions).Transition(new BitmapTransitionOptions().CrossFade(100)); LibrarySynchronizer = new LibrarySynchronizer(context); } catch (Exception e) { Console.WriteLine(e); } }
private void InitComponent(View view) { try { MRecycler = (RecyclerView)view.FindViewById(Resource.Id.recylerSongsPlaylist); EmptyStateLayout = view.FindViewById <ViewStub>(Resource.Id.viewStub); CollapsingToolbar = view.FindViewById <CollapsingToolbarLayout>(Resource.Id.collapsingToolbar); CollapsingToolbar.Title = ""; IconMore = view.FindViewById <ImageView>(Resource.Id.more); IconMore.Click += IconMoreOnClick; AppBarLayout = view.FindViewById <AppBarLayout>(Resource.Id.appBarLayout); AppBarLayout.SetExpanded(true); LayoutImage = view.FindViewById <RelativeLayout>(Resource.Id.Layoutimage); LayoutImage.SetClipToPadding(true); TxtNamePlaylist = view.FindViewById <TextView>(Resource.Id.name); TxtSongCount = view.FindViewById <TextView>(Resource.Id.soungCount); TxtPublisherName = view.FindViewById <TextView>(Resource.Id.ByUser); CoverImage = view.FindViewById <ImageView>(Resource.Id.Coverimage); DiskImage = view.FindViewById <CircleImageView>(Resource.Id.Diskimage); GlideRequestOptions = new RequestOptions().SetDiskCacheStrategy(DiskCacheStrategy.All).SetPriority(Priority.High).Apply(RequestOptions.CircleCropTransform().CenterCrop().CircleCrop()); PlayAllButton = view.FindViewById <FloatingActionButton>(Resource.Id.fab); PlayAllButton.Click += PlayAllButtonOnClick; PlayAllButton.Tag = "play"; PlayAllButton.Visibility = ViewStates.Gone; ImageBack = view.FindViewById <ImageView>(Resource.Id.ImageBack); BackIcon = view.FindViewById <FrameLayout>(Resource.Id.back); BackIcon.Click += BackIcon_Click; LibrarySynchronizer = new LibrarySynchronizer(Activity); } catch (Exception e) { Console.WriteLine(e); } }
public VideoController(Activity activity, string activityName) { try { var defaultCookieManager = new CookieManager(); defaultCookieManager.SetCookiePolicy(CookiePolicy.AcceptOriginalServer); ActivityName = activityName; ActivityContext = activity; Instance = this; LibrarySynchronizer = new LibrarySynchronizer(activity); Initialize(); } catch (Exception exception) { Console.WriteLine(exception); } }
private void InitComponent(View view) { try { CollapsingToolbar = view.FindViewById <CollapsingToolbarLayout>(Resource.Id.collapsingToolbar); CollapsingToolbar.Title = " "; AppBarLayout = view.FindViewById <AppBarLayout>(Resource.Id.mainAppBarLayout); AppBarLayout.SetExpanded(true); MRecycler = view.FindViewById <RecyclerView>(Resource.Id.albums_recyler); EmptyStateLayout = view.FindViewById <ViewStub>(Resource.Id.viewStub); IconMore = view.FindViewById <ImageView>(Resource.Id.more); IconMore.Click += IconMoreOnClick; PlayAllButton = view.FindViewById <FloatingActionButton>(Resource.Id.fab); PlayAllButton.Click += PlayAllButtonOnClick; PlayAllButton.Tag = "play"; PlayAllButton.Visibility = ViewStates.Gone; BuyButton = view.FindViewById <Button>(Resource.Id.BuyButton); BuyButton.Click += BuyButtonOnClick; BuyButton.Visibility = ViewStates.Gone; ImageCover = view.FindViewById <ImageView>(Resource.Id.imageCover); ImageAvatar = view.FindViewById <CircleImageView>(Resource.Id.imageAvatar); ImageAlbum = view.FindViewById <ImageView>(Resource.Id.imageSound); AlbumName = view.FindViewById <TextView>(Resource.Id.albumName); CountSoungAlbumText = view.FindViewById <TextView>(Resource.Id.CountSoungAlbumText); NameUserText = view.FindViewById <TextView>(Resource.Id.nameUserText); BackIcon = view.FindViewById <FrameLayout>(Resource.Id.back); BackIcon.Click += BackIcon_Click; LibrarySynchronizer = new LibrarySynchronizer(Activity); } catch (Exception e) { Console.WriteLine(e); } }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { try { Context contextThemeWrapper = AppSettings.SetTabDarkTheme ? new ContextThemeWrapper(Activity, Resource.Style.MyTheme_Dark_Base) : new ContextThemeWrapper(Activity, Resource.Style.MyTheme_Base); LayoutInflater localInflater = inflater.CloneInContext(contextThemeWrapper); View view = localInflater.Inflate(Resource.Layout.MoreMenuVideoDialogLayout, container, false); LibrarySynchronizer = new LibrarySynchronizer(Activity); Controller = VideoController.GetInstance(); InitComponent(view); AddOrRemoveEvent(true); return(view); } catch (Exception exception) { Console.WriteLine(exception); return(null); } }
public VideoBigAdapter(Activity context) { HasStableIds = true; ActivityContext = context; LibrarySynchronizer = new LibrarySynchronizer(context); }
public PlayListsAdapter(Activity context) { HasStableIds = true; ActivityContext = context; LibrarySynchronizer = new LibrarySynchronizer(context); }