Lines Matching refs:label
37 * a label, icon, and meta-data. This class is not intended
57 * component's label. From the "label" attribute or, if not set, 0.
120 * Retrieve the current textual label associated with this item. This
121 * will call back on the given PackageManager to load the label from
124 * @param pm A PackageManager from which the label can be loaded; usually
127 * @return Returns a CharSequence containing the item's label. If the
128 * item does not have a label, its name is returned.
135 CharSequence label = pm.getText(packageName, labelRes, getApplicationInfo());
136 if (label != null) {
137 return label.toString().trim();
148 * the returned label is safe for being presented in the UI since it
151 * layout via the app label misleading the user into performing a
152 * detrimental for them action. If the label is too long it will be
155 * @param pm A PackageManager from which the label can be loaded; usually
157 * @return Returns a CharSequence containing the item's label. If the
158 * item does not have a label, its name is returned.
165 String label = loadLabel(pm).toString();
167 String labelStr = Html.fromHtml(label).toString();
169 // If the label contains new line characters it may push the UI