library/src/main/java/com/lsxiao/library/DotView.java
/**
     * to find the draggableLayout instance layout in the view tree.
     *
     * @return null, if don't find,else return DraggableLayout instance.
     */
to find the draggableLayout instance layout in the view tree.
@return null, if don't find,else return DraggableLayout instance.
to find the draggableLayout instance layout in the view tree . @return null if don ' t find else return DraggableLayout instance .
public DraggableLayout findDraggableLayout() {
        Activity activity = (Activity) getContext();
        ViewGroup decorView = (ViewGroup) activity.getWindow().getDecorView();
        for (int i = 0; i < decorView.getChildCount(); i++) {
            View view = decorView.getChildAt(i);
            if (view == null) {
                break;
            }
            if (view instanceof DraggableLayout) {
                return (DraggableLayout) view;
            }
        }
        return null;
    }
public DraggableLayout findDraggableLayout ( ) { Activity activity = ( Activity ) getContext ( ) ; ViewGroup decorView = ( ViewGroup ) activity . getWindow ( ) . getDecorView ( ) ; for ( int i = 0 ; i < decorView . getChildCount ( ) ; i ++ ) { View view = decorView . getChildAt ( i ) ; if ( view == null ) { break ; } if ( view instanceof DraggableLayout ) { return ( DraggableLayout ) view ; } } return null ; }
to find the draggableLayout instance layout in the view tree.
to find the draggableLayout instance layout in the view tree .