Java Code Examples for android.view.View#getLabelFor()

The following examples show how to use android.view.View#getLabelFor() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
@RequiresApi(Build.VERSION_CODES.JELLY_BEAN_MR1) // Calls View#getLabelFor
private static @Nullable View lookForLabelForViewInViewAndChildren(
    View view, @Nullable View childToSkip, int idToFind) {
  if (view.getLabelFor() == idToFind) {
    return view;
  }
  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;
}
 
Example 2
Source Project: letv   File: ViewCompatJellybeanMr1.java    License: Apache License 2.0 4 votes vote down vote up
public static int getLabelFor(View view) {
    return view.getLabelFor();
}
 
Example 3
Source Project: MiBandDecompiled   File: an.java    License: Apache License 2.0 4 votes vote down vote up
public static int a(View view)
{
    return view.getLabelFor();
}
 
Example 4
public static int getLabelFor(View view) {
    return view.getLabelFor();
}
 
Example 5
public static int getLabelFor(View view) {
    return view.getLabelFor();
}
 
Example 6
Source Project: V.FlyoutTest   File: ViewCompatJellybeanMr1.java    License: MIT License 4 votes vote down vote up
public static int getLabelFor(View view) {
    return view.getLabelFor();
}
 
Example 7
Source Project: guideshow   File: ViewCompatJellybeanMr1.java    License: MIT License 4 votes vote down vote up
public static int getLabelFor(View view) {
    return view.getLabelFor();
}