public class BrushToolPreviewView
extends android.support.v7.widget.RecyclerView
android.support.v7.widget.RecyclerView.Adapter<VH extends android.support.v7.widget.RecyclerView.ViewHolder>, android.support.v7.widget.RecyclerView.AdapterDataObserver, android.support.v7.widget.RecyclerView.ChildDrawingOrderCallback, android.support.v7.widget.RecyclerView.ItemAnimator, android.support.v7.widget.RecyclerView.ItemDecoration, android.support.v7.widget.RecyclerView.LayoutManager, android.support.v7.widget.RecyclerView.LayoutParams, android.support.v7.widget.RecyclerView.OnChildAttachStateChangeListener, android.support.v7.widget.RecyclerView.OnFlingListener, android.support.v7.widget.RecyclerView.OnItemTouchListener, android.support.v7.widget.RecyclerView.OnScrollListener, android.support.v7.widget.RecyclerView.RecycledViewPool, android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.RecyclerListener, android.support.v7.widget.RecyclerView.SavedState, android.support.v7.widget.RecyclerView.SimpleOnItemTouchListener, android.support.v7.widget.RecyclerView.SmoothScroller, android.support.v7.widget.RecyclerView.State, android.support.v7.widget.RecyclerView.ViewCacheExtension, android.support.v7.widget.RecyclerView.ViewHolder
Constructor and Description |
---|
BrushToolPreviewView(Context context) |
BrushToolPreviewView(Context context,
AttributeSet attrs) |
BrushToolPreviewView(Context context,
AttributeSet attrs,
int defStyle) |
Modifier and Type | Method and Description |
---|---|
protected void |
onAttachedToWindow() |
void |
onDraw(Canvas c) |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
void |
setColor(int color) |
void |
setHardness(float hardness) |
void |
setSize(float size) |
void |
update() |
addFocusables, addItemDecoration, addItemDecoration, addOnChildAttachStateChangeListener, addOnItemTouchListener, addOnScrollListener, checkLayoutParams, clearOnChildAttachStateChangeListeners, clearOnScrollListeners, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPreScroll, dispatchNestedScroll, dispatchRestoreInstanceState, dispatchSaveInstanceState, draw, drawChild, findChildViewUnder, findContainingItemView, findContainingViewHolder, findViewHolderForAdapterPosition, findViewHolderForItemId, findViewHolderForLayoutPosition, findViewHolderForPosition, fling, focusSearch, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAdapter, getBaseline, getChildAdapterPosition, getChildDrawingOrder, getChildItemId, getChildLayoutPosition, getChildPosition, getChildViewHolder, getClipToPadding, getCompatAccessibilityDelegate, getDecoratedBoundsWithMargins, getItemAnimator, getLayoutManager, getMaxFlingVelocity, getMinFlingVelocity, getOnFlingListener, getPreserveFocusAfterLayout, getRecycledViewPool, getScrollState, hasFixedSize, hasNestedScrollingParent, hasPendingAdapterUpdates, invalidateItemDecorations, isAnimating, isAttachedToWindow, isComputingLayout, isLayoutFrozen, isNestedScrollingEnabled, offsetChildrenHorizontal, offsetChildrenVertical, onChildAttachedToWindow, onChildDetachedFromWindow, onDetachedFromWindow, onGenericMotionEvent, onInterceptTouchEvent, onLayout, onMeasure, onRequestFocusInDescendants, onRestoreInstanceState, onSaveInstanceState, onScrolled, onScrollStateChanged, onTouchEvent, removeDetachedView, removeItemDecoration, removeOnChildAttachStateChangeListener, removeOnItemTouchListener, removeOnScrollListener, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestLayout, scrollBy, scrollTo, scrollToPosition, sendAccessibilityEventUnchecked, setAccessibilityDelegateCompat, setAdapter, setChildDrawingOrderCallback, setClipToPadding, setHasFixedSize, setItemAnimator, setItemViewCacheSize, setLayoutFrozen, setLayoutManager, setNestedScrollingEnabled, setOnFlingListener, setOnScrollListener, setPreserveFocusAfterLayout, setRecycledViewPool, setRecyclerListener, setScrollingTouchSlop, setViewCacheExtension, smoothScrollBy, smoothScrollBy, smoothScrollToPosition, startNestedScroll, stopNestedScroll, stopScroll, swapAdapter
public BrushToolPreviewView(Context context)
public BrushToolPreviewView(Context context, AttributeSet attrs)
public BrushToolPreviewView(Context context, AttributeSet attrs, int defStyle)
protected void onAttachedToWindow()
onAttachedToWindow
in class android.support.v7.widget.RecyclerView
public void onDraw(Canvas c)
onDraw
in class android.support.v7.widget.RecyclerView
protected void onSizeChanged(int w, int h, int oldw, int oldh)
onSizeChanged
in class android.support.v7.widget.RecyclerView
public void setColor(int color)
public void setHardness(float hardness)
public void setSize(float size)
public void update()