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 check out the related API usage on the sidebar.
Example 1
Source Project: Accessibility-Test-Framework-for-Android File: ViewAccessibilityUtils.java License: Apache License 2.0 | 6 votes |
@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 |
public static int getLabelFor(View view) { return view.getLabelFor(); }
Example 3
Source Project: MiBandDecompiled File: an.java License: Apache License 2.0 | 4 votes |
public static int a(View view) { return view.getLabelFor(); }
Example 4
Source Project: CodenameOne File: ViewCompatJellybeanMr1.java License: GNU General Public License v2.0 | 4 votes |
public static int getLabelFor(View view) { return view.getLabelFor(); }
Example 5
Source Project: adt-leanback-support File: ViewCompatJellybeanMr1.java License: Apache License 2.0 | 4 votes |
public static int getLabelFor(View view) { return view.getLabelFor(); }
Example 6
Source Project: V.FlyoutTest File: ViewCompatJellybeanMr1.java License: MIT License | 4 votes |
public static int getLabelFor(View view) { return view.getLabelFor(); }
Example 7
Source Project: guideshow File: ViewCompatJellybeanMr1.java License: MIT License | 4 votes |
public static int getLabelFor(View view) { return view.getLabelFor(); }