congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DragDropListView.getChildCount
Code IndexAdd Tabnine to your IDE (free)

How to use
getChildCount
method
in
cc.solart.dragdrop.DragDropListView

Best Java code snippets using cc.solart.dragdrop.DragDropListView.getChildCount (Showing top 3 results out of 315)

origin: Solartisan/DragDropListView

/**
 * Find the view under the pointer.
 */
private View getViewAtPosition(int x, int y) {
  final int count = getChildCount();
  View child;
  for (int childIdx = 0; childIdx < count; childIdx++) {
    child = getChildAt(childIdx);
    if (y >= child.getTop() && y <= child.getBottom() && x >= child.getLeft()
        && x <= child.getRight()) {
      return child;
    }
  }
  return null;
}
origin: Solartisan/DragDropListView

  private void saveOffsets() {
    final int firstVisiblePosition = mDragDropListener.getDragDropListView().getFirstVisiblePosition();
    for (int i = 0; i < mDragDropListener.getDragDropListView().getChildCount(); i++) {
      final View child = mDragDropListener.getDragDropListView().getChildAt(i);
      final int position = firstVisiblePosition + i;

      if (!isIndexInBound(position)) {
        continue;
      }
      final long itemId = getItemId(position);

//            Log.d(TAG, "Saving itemId: " + itemId + " for listview child " + i + " Top: "
//                    + child.getTop() + " Left: "
//                    + child.getLeft());

      mItemIdTopMap.put(itemId, child.getTop());
      mItemIdLeftMap.put(itemId, child.getLeft());
    }
  }

origin: Solartisan/DragDropListView

for (int i = 0; i < mDragDropListener.getDragDropListView().getChildCount(); i++) {
  final View child = mDragDropListener.getDragDropListView().getChildAt(i);
  int position = firstVisiblePosition + i;
cc.solart.dragdropDragDropListViewgetChildCount

Popular methods of DragDropListView

  • createDraggedChildBitmap
  • ensureScrollHandler
  • getBottom
  • getChildAt
  • getContext
  • getDragDropController
  • getFirstVisiblePosition
  • getHandler
  • getHeight
  • getLocationOnScreen
  • getTop
  • getViewAtPosition
    Find the view under the pointer.
  • getTop,
  • getViewAtPosition,
  • getViewTreeObserver,
  • setAdapter,
  • setDragShadowOverlay,
  • setLayoutAnimation,
  • setScrollBarStyle,
  • setVerticalScrollBarEnabled,
  • setVerticalScrollbarPosition

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • JCheckBox (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now