Java Code Examples for android.view.View#setLabelFor()
The following examples show how to use
android.view.View#setLabelFor() .
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: cronet File: ApiCompatibilityUtils.java License: BSD 3-Clause "New" or "Revised" License | 5 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
Source Project: 365browser File: ApiCompatibilityUtils.java License: Apache License 2.0 | 5 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 3
Source Project: letv File: ViewCompatJellybeanMr1.java License: Apache License 2.0 | 4 votes |
public static void setLabelFor(View view, int id) { view.setLabelFor(id); }
Example 4
Source Project: MiBandDecompiled File: an.java License: Apache License 2.0 | 4 votes |
public static void a(View view, int i) { view.setLabelFor(i); }
Example 5
Source Project: CodenameOne File: ViewCompatJellybeanMr1.java License: GNU General Public License v2.0 | 4 votes |
public static void setLabelFor(View view, int id) { view.setLabelFor(id); }
Example 6
Source Project: adt-leanback-support File: ViewCompatJellybeanMr1.java License: Apache License 2.0 | 4 votes |
public static void setLabelFor(View view, int id) { view.setLabelFor(id); }
Example 7
Source Project: V.FlyoutTest File: ViewCompatJellybeanMr1.java License: MIT License | 4 votes |
public static void setLabelFor(View view, int id) { view.setLabelFor(id); }
Example 8
Source Project: guideshow File: ViewCompatJellybeanMr1.java License: MIT License | 4 votes |
public static void setLabelFor(View view, int id) { view.setLabelFor(id); }