예제 #1
0
        /// <summary>
        /// Called when the focus changed in grid
        /// </summary>
        /// <param name="groupIndex">The index of the group</param>
        /// <param name="itemIndex">The index of the item</param>
        /// <param name="view">the item</param>
        /// <param name="FlagFocused">The falg to tell user it is focusGained or focusLost</param>
        /// <param name="bSelected">It is selected or not</param>
        public override void FocusChange(int groupIndex, int itemIndex, View view, bool FlagFocused, bool bSelected = false)
        {
            ThumbnailView itemView = view as ThumbnailView;

            itemView.StateFocused = FlagFocused;
            Tizen.Log.Fatal("NUI", "FocusChange in GridView!");
            FootView footView = CommonResource.FootView;

            if (FlagFocused == true)
            {
                Tizen.Log.Fatal("NUI", " Gridlist view onFocus change index:" + itemIndex);
                ContentModel item      = (ContentModel)GetData(itemIndex, groupIndex);
                FootModel    footModel = new FootModel();
                footModel.ItemType = item.MediaItemType;
                footModel.Title    = item.DisplayName;
                footModel.Size     = item.Size;
                footModel.Format   = item.Format;
                footModel.Data     = item.Data;
                if (footView)
                {
                    footView.Update(footModel);
                }

                Tizen.Log.Fatal("NUI", " Gridlist view onFocus change footModel.ItemType:" + footModel.ItemType);
            }
        }
예제 #2
0
 /// <summary>
 /// Create FootView.
 /// </summary>
 private void CreateFootView()
 {
     footView = new FootView();
     footView.RenderView();
     this.bgView.Add(footView);
     CommonResource.FootView = footView;
 }