}
}
- // <summary>
+ /// <summary>
/// Icon padding in Button, work only when show icon and text.
/// </summary>
/// <since_tizen> 6 </since_tizen>
}
}
- // <summary>
+ /// <summary>
/// Text padding in Button, work only when show icon and text.
/// </summary>
/// <since_tizen> 6 </since_tizen>
float extent = mLayout.ComputeScrollExtent();
float range = mLayout.ComputeScrollRange();
- if(range == 0)
+ if (range == 0)
{
return;
}
mAdapter.OnFocusChange(this, mFocusedItemIndex, nextFocusPosition);
mFocusedItemIndex = nextFocusPosition;
-
+
ShowScrollBar();
}
[EditorBrowsable(EditorBrowsableState.Never)]
public void NotifyItemMoved(int fromPosition, int toPosition)
{
-
+
}
private void OnItemEvent(object sender, ItemEventArgs e)
// Favor the "start" layout direction over the end when bringing one side or the other
// of a large rect into view. If we decide to bring in end because start is already
// visible, limit the scroll such that start won't go out of bounds.
- int dx= offScreenLeft != 0 ? offScreenLeft
+ int dx = offScreenLeft != 0 ? offScreenLeft
: Math.Min(childLeft - parentLeft, offScreenRight);
// Favor bringing the top into view over the bottom. If top is already visible and
}
}
+ /// <summary>
+ /// FindFirstVisibleItemView
+ /// </summary>
+ /// <returns>ViewHolder</returns>
protected virtual ViewHolder FindFirstVisibleItemView()
{
return null;
}
+ /// <summary>
+ /// FindLastVisibleItemView
+ /// </summary>
+ /// <returns>ViewHolder</returns>
protected virtual ViewHolder FindLastVisibleItemView()
{
return null;
[EditorBrowsable(EditorBrowsableState.Never)]
public class ViewHolder
{
- /**
- * This ViewHolder has been bound to a position; AdapterPosition, mItemId and mItemViewType
- * are all valid.
- */
+ // This ViewHolder has been bound to a position; AdapterPosition, mItemId and mItemViewType
+ // are all valid.
//static readonly int FLAG_BOUND = 1 << 0;
- /**
- * The data this ViewHolder's view reflects is stale and needs to be rebound
- * by the adapter. AdapterPosition and mItemId are consistent.
- */
+ // The data this ViewHolder's view reflects is stale and needs to be rebound
+ // by the adapter. AdapterPosition and mItemId are consistent.
//static readonly int FLAG_UPDATE = 1 << 1;
- /**
- * This ViewHolder's data is invalid. The identity implied by AdapterPosition and mItemId
- * are not to be trusted and may no longer match the item view type.
- * This ViewHolder must be fully rebound to different data.
- */
+ // This ViewHolder's data is invalid. The identity implied by AdapterPosition and mItemId
+ // are not to be trusted and may no longer match the item view type.
+ // This ViewHolder must be fully rebound to different data.
//static readonly int FLAG_INVALID = 1 << 2;
- /**
- * This ViewHolder points at data that represents an item previously removed from the
- * data set. Its view may still be used for things like outgoing animations.
- */
+ // This ViewHolder points at data that represents an item previously removed from the
+ // data set. Its view may still be used for things like outgoing animations.
//static readonly int FLAG_REMOVED = 1 << 3;
- /**
- * This ViewHolder should not be recycled. This flag is set via setIsRecyclable()
- * and is intended to keep views around during animations.
- */
+ // This ViewHolder should not be recycled. This flag is set via setIsRecyclable()
+ // and is intended to keep views around during animations.
//static readonly int FLAG_NOT_RECYCLABLE = 1 << 4;
- /**
- * This ViewHolder is returned from scrap which means we are expecting an addView call
- * for this itemView. When returned from scrap, ViewHolder stays in the scrap list until
- * the end of the layout pass and then recycled by RecyclerView if it is not added back to
- * the RecyclerView.
- */
+ // This ViewHolder is returned from scrap which means we are expecting an addView call
+ // for this itemView. When returned from scrap, ViewHolder stays in the scrap list until
+ // the end of the layout pass and then recycled by RecyclerView if it is not added back to
+ // the RecyclerView.
//static readonly int FLAG_RETURNED_FROM_SCRAP = 1 << 5;
- /**
- * This ViewHolder is fully managed by the LayoutManager. We do not scrap, recycle or remove
- * it unless LayoutManager is replaced.
- * It is still fully visible to the LayoutManager.
- */
+ // This ViewHolder is fully managed by the LayoutManager. We do not scrap, recycle or remove
+ // it unless LayoutManager is replaced.
+ // It is still fully visible to the LayoutManager.
//static readonly int FLAG_IGNORE = 1 << 7;
private int mFlags;
private class ChildHelper
{
private FlexibleView mFlexibleView;
-
+
private List<ViewHolder> mViewList = new List<ViewHolder>();
//private List<ViewHolder> mRemovePendingViews;
public void Clear()
{
- foreach(ViewHolder holder in mViewList)
+ foreach (ViewHolder holder in mViewList)
{
mFlexibleView.Remove(holder.ItemView);
if (!itemViewTable.ContainsKey(holder.ItemView.ID))
{
mTapGestureDetector.Attach(holder.ItemView);
- holder.ItemView.TouchEvent += OnTouchEvent;
+ holder.ItemView.TouchEvent += OnTouchEvent;
}
itemViewTable[holder.ItemView.ID] = holder;
/// <summary>
/// Scroll horizontally by dy pixels in screen coordinates.
/// </summary>
- /// <param name="dy">distance to scroll in pixels. Y increases as scroll position approaches the top.</param>
+ /// <param name="dx">distance to scroll in pixels. Y increases as scroll position approaches the top.</param>
/// <param name="recycler">Recycler to use for fetching potentially cached views for a position</param>
/// <param name="immediate">Specify if the scroll need animation</param>
/// <since_tizen> 6 </since_tizen>
mLayoutState.Extra = mOrientationHelper.GetStartAfterPadding();
}
+ /// <summary>
+ /// FindFirstVisibleItemView
+ /// </summary>
+ /// <returns>FlexibleView.ViewHolder</returns>
protected override FlexibleView.ViewHolder FindFirstVisibleItemView()
{
int childCount = ChildCount;
return null;
}
+ /// <summary>
+ /// FindLastVisibleItemView
+ /// </summary>
+ /// <returns>FlexibleView.ViewHolder</returns>
protected override FlexibleView.ViewHolder FindLastVisibleItemView()
{
int childCount = ChildCount;
/// Method to set current value. The thumb object would move to the corresponding position with animation or not.
/// </summary>
/// <param name="currentValue">The special current value.</param>
- /// <param name="isEnableAni">Enable move with animation or not, the default value is true.</param>
+ /// <param name="EnableAnimation">Enable move with animation or not, the default value is true.</param>
/// <exception cref="ArgumentOutOfRangeException">Throw when current size is less than the min value, or greater than the max value.</exception>
/// <example>
/// <code>
private readonly uint textLineSpace = 4;
private readonly float textPointSize = 38;
private readonly int textPaddingLeft = 96;
- private readonly int textPaddingRight = 96;
+ //private readonly int textPaddingRight = 96;
private readonly int textPaddingTop = 38;
- private readonly int textPaddingBottom = 38;
+ //private readonly int textPaddingBottom = 38;
private readonly uint duration = 3000;
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public class ThemeChangeEventArgs : EventArgs
{
+ /// <summary>
+ /// CurrentTheme
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
public string CurrentTheme;
}
}
}
}
+ /// <summary>
+ /// Property for ItemView. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public new class Property
{
+ /// <summary>
+ /// LAYOUT. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int LAYOUT = Interop.ItemView.ItemView_Property_LAYOUT_get();
+ /// <summary>
+ /// MINIMUM_SWIPE_SPEED. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int MINIMUM_SWIPE_SPEED = Interop.ItemView.ItemView_Property_MINIMUM_SWIPE_SPEED_get();
+ /// <summary>
+ /// MINIMUM_SWIPE_DISTANCE. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int MINIMUM_SWIPE_DISTANCE = Interop.ItemView.ItemView_Property_MINIMUM_SWIPE_DISTANCE_get();
+ /// <summary>
+ /// WHEEL_SCROLL_DISTANCE_STEP. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int WHEEL_SCROLL_DISTANCE_STEP = Interop.ItemView.ItemView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
+ /// <summary>
+ /// SNAP_TO_ITEM_ENABLED. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int SNAP_TO_ITEM_ENABLED = Interop.ItemView.ItemView_Property_SNAP_TO_ITEM_ENABLED_get();
+ /// <summary>
+ /// REFRESH_INTERVAL. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int REFRESH_INTERVAL = Interop.ItemView.ItemView_Property_REFRESH_INTERVAL_get();
+ /// <summary>
+ /// LAYOUT_POSITION. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int LAYOUT_POSITION = Interop.ItemView.ItemView_Property_LAYOUT_POSITION_get();
+ /// <summary>
+ /// SCROLL_SPEED. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int SCROLL_SPEED = Interop.ItemView.ItemView_Property_SCROLL_SPEED_get();
+ /// <summary>
+ /// OVERSHOOT. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int OVERSHOOT = Interop.ItemView.ItemView_Property_OVERSHOOT_get();
+ /// <summary>
+ /// SCROLL_DIRECTION. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int SCROLL_DIRECTION = Interop.ItemView.ItemView_Property_SCROLL_DIRECTION_get();
+ /// <summary>
+ /// LAYOUT_ORIENTATION. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int LAYOUT_ORIENTATION = Interop.ItemView.ItemView_Property_LAYOUT_ORIENTATION_get();
+ /// <summary>
+ /// SCROLL_CONTENT_SIZE. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
[Obsolete("Deprecated in API6; Will be removed in API9.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly int SCROLL_CONTENT_SIZE = Interop.ItemView.ItemView_Property_SCROLL_CONTENT_SIZE_get();
event Callback _instance;
- // A Flag to check if it is already disposed.
- private bool disposed = false;
-
private Window _window;
Animation _coreAnimation;
dummy = new View();
dummy.Name = "dali-atspi-singleton";
}
+ /// <summary>
+ /// destructor. This is HiddenAPI. recommended not to use in public.
+ /// </summary>
~Accessibility()
{
-
}
#endregion Constructor, Distructor, Dispose
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- //A Flag to check who called Dispose(). (By User or DisposeQueue)
- private bool isDisposeQueued = false;
-
/// <summary>
/// The constructor.
/// </summary>