예제 #1
0
 public override void OnFocusChange(Tizen.NUI.CommonUI.FlexibleView flexibleView, int previousFocus, int currentFocus)
 {
     Tizen.NUI.CommonUI.FlexibleView.ViewHolder previousFocusView = flexibleView.FindViewHolderForAdapterPosition(previousFocus);
     if (previousFocusView != null)
     {
         //Console.WriteLine($"previousFocus {previousFocus.AdapterPosition}");
         if (previousFocusView.AdapterPosition % 2 == 0)
         {
             previousFocusView.ItemView.BackgroundColor = Color.Cyan;
         }
         else
         {
             previousFocusView.ItemView.BackgroundColor = Color.Yellow;
         }
         //previousFocus.SizeWidth = 150;
         //previousFocus.SizeHeight = 60;
         //NotifyItemChanged(previousFocus.AdapterPosition);
     }
     Tizen.NUI.CommonUI.FlexibleView.ViewHolder currentFocusView = flexibleView.FindViewHolderForAdapterPosition(currentFocus);
     if (currentFocusView != null)
     {
         //Console.WriteLine($"currentFocus {currentFocus.AdapterPosition}");
         currentFocusView.ItemView.BackgroundColor = Color.Magenta;
         //currentFocus.SizeWidth = 200;
         //currentFocus.SizeHeight = 100;
         //NotifyItemChanged(currentFocus.AdapterPosition);
     }
 }
예제 #2
0
 public override void OnFocusChange(Tizen.NUI.CommonUI.FlexibleView flexibleView, int previousFocus, int currentFocus)
 {
     Tizen.NUI.CommonUI.FlexibleView.ViewHolder previousFocusView = flexibleView.FindViewHolderForAdapterPosition(previousFocus);
     if (previousFocusView != null)
     {
     }
     Tizen.NUI.CommonUI.FlexibleView.ViewHolder currentFocusView = flexibleView.FindViewHolderForAdapterPosition(currentFocus);
     if (currentFocusView != null)
     {
     }
 }