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

The following examples show how to use android.view.View#setLabelFor() . 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 File: ApiCompatibilityUtils.java    From cronet with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * See {@link android.view.View#setLabelFor(int)}.
 */
public static void setLabelFor(View labelView, int id) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
        labelView.setLabelFor(id);
    } else {
        // Do nothing. #setLabelFor() isn't supported before JB MR1.
    }
}
 
Example 2
Source File: ApiCompatibilityUtils.java    From 365browser with Apache License 2.0 5 votes vote down vote up
/**
 * See {@link android.view.View#setLabelFor(int)}.
 */
public static void setLabelFor(View labelView, int id) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
        labelView.setLabelFor(id);
    } else {
        // Do nothing. #setLabelFor() isn't supported before JB MR1.
    }
}
 
Example 3
Source File: ViewCompatJellybeanMr1.java    From letv with Apache License 2.0 4 votes vote down vote up
public static void setLabelFor(View view, int id) {
    view.setLabelFor(id);
}
 
Example 4
Source File: an.java    From MiBandDecompiled with Apache License 2.0 4 votes vote down vote up
public static void a(View view, int i)
{
    view.setLabelFor(i);
}
 
Example 5
Source File: ViewCompatJellybeanMr1.java    From CodenameOne with GNU General Public License v2.0 4 votes vote down vote up
public static void setLabelFor(View view, int id) {
    view.setLabelFor(id);
}
 
Example 6
Source File: ViewCompatJellybeanMr1.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
public static void setLabelFor(View view, int id) {
    view.setLabelFor(id);
}
 
Example 7
Source File: ViewCompatJellybeanMr1.java    From V.FlyoutTest with MIT License 4 votes vote down vote up
public static void setLabelFor(View view, int id) {
    view.setLabelFor(id);
}
 
Example 8
Source File: ViewCompatJellybeanMr1.java    From guideshow with MIT License 4 votes vote down vote up
public static void setLabelFor(View view, int id) {
    view.setLabelFor(id);
}