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

The following are Jave code examples for showing how to use setLabelFor() of the android.view.View class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: chromium-net-for-android   File: ApiCompatibilityUtils.java   Source Code and License Vote up 6 votes
/**
 * 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
Project: letv   File: ViewCompatJellybeanMr1.java   Source Code and License Vote up 5 votes
public static void setLabelFor(View view, int id) {
    view.setLabelFor(id);
}
 
Example 3
Project: boohee_v5.6   File: ViewCompatJellybeanMr1.java   Source Code and License Vote up 5 votes
public static void setLabelFor(View view, int id) {
    view.setLabelFor(id);
}