/// <summary>
        /// click event for the adapter
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void RootVideoAdapter_ItemClick(object sender, KeyValuePair <int, VideoCard> e)
        {
            var vdl = VideoDetailLoader.GetVideoDetailById(e.Value.FragmentId);
            var f   = GetFragmentById(e.Value.FragmentId);
            var vdv = f.VideoDetailView;

            VideoDetailLoader.GetVideoDetailById(e.Value.FragmentId)
            .LoadVideoDetailFromVideoCard(vdv, e.Value, null, null, f.TabFragmentRelativeLayout, e.Value.FragmentId);
            //VideoDetailLoader.GetVideoDetailById(e.Value.FragmentId)
            //    .LoadVideoDetailFromVideoCard(GetFragmentById(e.Value.FragmentId).VideoDetailView,
            //    e.Value, null, null, GetFragmentById(e.Value.FragmentId).TabFragmentRelativeLayout);
        }
示例#2
0
 public static void OnDeviceRotation(bool horizontal, int newHeight, int newWidth)
 {
     foreach (var videoView in VideoViewDictionary)
     {
         videoView.Value.LayoutParameters = AppState.Display.GetCurrentVideoContainerLayout();
     }
     if (AppState.Display.Horizontal)
     {
         foreach (var tv in VideoDetailLoader.GetVideoDetailViewTitles())
         {
             tv.Value.Visibility = ViewStates.Gone;
         }
     }
     else
     {
         foreach (var tv in VideoDetailLoader.GetVideoDetailViewTitles())
         {
             tv.Value.Visibility = ViewStates.Visible;
         }
     }
 }