@Test public void testSetLabel() { final String testLabel = "testLabel"; TabView tabView = new TabView(getContextWithTheme()); tabView.setLabel(testLabel); assertEquals(testLabel, tabView.getLabel()); }
private void setLabel(final TypedArray typedArray, final int attr) { final String labelText = ThemeUtil.getString(typedArray, attr); if (labelText == null) { return; } mButtonLabel.setText(labelText); }
TabView extends RelativeLayout { private void setLabel(final TypedArray typedArray, final int attr) { final String labelText = ThemeUtil.getString(typedArray, attr); if (labelText == null) { return; } mButtonLabel.setText(labelText); } }
TabView extends RelativeLayout { private void setLabel(final TypedArray typedArray, final int attr) { final String labelText = ThemeUtil.getString(typedArray, attr); if (labelText == null) { return; } mButtonLabel.setText(labelText); } TabView(final Context context);  TabView(final Context context, final AttributeSet attrs);  TabView(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  TabView(final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes); }
TabView extends RelativeLayout { private void setLabel(final TypedArray typedArray, final int attr) { final String labelText = ThemeUtil.getString(typedArray, attr); if (labelText == null) { return; } mButtonLabel.setText(labelText); } TabView(final Context context);  TabView(final Context context, final AttributeSet attrs);  TabView(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  TabView(final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes); Drawable getIcon(); TabView setIcon(final Drawable drawable); CharSequence getLabel(); TabView setLabel(final String label); }
TabView extends RelativeLayout { private void setLabel(final TypedArray typedArray, final int attr) { final String labelText = ThemeUtil.getString(typedArray, attr); if (labelText == null) { return; } mButtonLabel.setText(labelText); } TabView(final Context context);  TabView(final Context context, final AttributeSet attrs);  TabView(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  TabView(final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes); Drawable getIcon(); TabView setIcon(final Drawable drawable); CharSequence getLabel(); TabView setLabel(final String label);  }