Example usage for android.view View equals

List of usage examples for android.view View equals

Introduction

In this page you can find the example usage for android.view View equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:com.google.android.apps.common.testing.accessibility.framework.ViewAccessibilityUtils.java

private static View lookForLabelForViewInViewAndChildren(View view, View childToSkip, int idToFind) {
    if (view.getLabelFor() == idToFind) {
        return view;
    }/* ww w . j  a v  a 2s .  c  o m*/
    if (!(view instanceof ViewGroup)) {
        return null;
    }
    ViewGroup viewGroup = (ViewGroup) view;
    for (int i = 0; i < viewGroup.getChildCount(); ++i) {
        View child = viewGroup.getChildAt(i);
        if (!child.equals(childToSkip)) {
            View labelingView = lookForLabelForViewInViewAndChildren(child, null, idToFind);
            if (labelingView != null) {
                return labelingView;
            }
        }
    }
    return null;
}

From source file:com.daycle.daycleapp.custom.swipelistview.itemmanipulation.swipedismiss.SwipeTouchListener.java

private static Rect getChildViewRect(final View parentView, final View childView) {
    Rect childRect = new Rect(childView.getLeft(), childView.getTop(), childView.getRight(),
            childView.getBottom());//from  w  w w  .j ava 2  s. c o m
    if (!parentView.equals(childView)) {
        View workingChildView = childView;
        ViewGroup parent;
        while (!(parent = (ViewGroup) workingChildView.getParent()).equals(parentView)) {
            childRect.offset(parent.getLeft(), parent.getTop());
            workingChildView = parent;
        }
    }
    return childRect;
}

From source file:com.woodblockwithoutco.quickcontroldock.ui.view.pager.LandscapePanelsAdapter.java

@Override
public boolean isViewFromObject(View v, Object o) {
    return v.equals(o);
}

From source file:org.deviceconnect.android.deviceplugin.wear.setting.WearSettingFragment.java

@Override
public void onClick(final View v) {
    if (v.equals(mImageView)) {
        Uri uri = Uri.parse("market://details?id=com.google.android.wearable.app");
        Intent intent = new Intent(Intent.ACTION_VIEW, uri);
        startActivity(intent);/*w  ww .  ja v a2 s .  c o  m*/
    }
}

From source file:org.deviceconnect.android.ui.adapter.DConnectPagerAdapter.java

@Override
public boolean isViewFromObject(final View view, final Object obj) {
    return view.equals(obj);
}

From source file:com.eyebrowssoftware.bptrackerfree.activity.BPDataManager.java

public void onClick(View v) {
    if (v.equals(mDeleteButton)) {
        showDeleteConfirmationDialog();
    }
}

From source file:net.ustyugov.jtalk.adapter.MainPageAdapter.java

@Override
public boolean isViewFromObject(View pView, Object pObject) {
    return pView.equals(pObject);
}

From source file:com.qiscus.sdk.ui.adapter.viewholder.QiscusBaseAccountLinkingMessageViewHolder.java

@Override
public void onClick(View v) {
    if (v.equals(accountLinkingView)) {
        itemClickListener.onItemClick(v, getAdapterPosition());
    }/*  w  w  w  .jav  a 2  s. co  m*/
}

From source file:aws.apps.underthehood.adapters.ViewPagerAdapter.java

@Override
public boolean isViewFromObject(View view, Object object) {
    return view.equals(object);
}

From source file:com.github.ppamorim.cult.CultHelperCallback.java

/**
 * Check if view on focus is the bar//w ww .  ja va2  s .  c  o  m
 *
 * @param child return the view on focus
 * @param pointerId return the id of view
 * @return if the child on focus is equals the bar
 */
@Override
public boolean tryCaptureView(View child, int pointerId) {
    return child.equals(content);
}