@Test public void getText() { badge.setText(""); assertThat(badge.getText(), equalTo("")); badge.setText("1"); assertThat(badge.getText(), equalTo("1")); badge.setText("FooBar"); assertThat(badge.getText(), equalTo("FooBar")); }
public final String getText() { return text; }
TextBadge extends BadgeDrawable { public final String getText() { return text; } }
TextBadge extends BadgeDrawable { public final String getText() { return text; } TextBadge(@NonNull Context context, @NonNull BadgeShape shape); protected  TextBadge(@NonNull BadgeShape shape, @ColorInt int badgeColor, @ColorInt int textColor); }
TextBadge extends BadgeDrawable { public final String getText() { return text; } TextBadge(@NonNull Context context, @NonNull BadgeShape shape); protected  TextBadge(@NonNull BadgeShape shape, @ColorInt int badgeColor, @ColorInt int textColor); @Override @SuppressLint("NewApi") void draw(@NonNull Canvas canvas); @Override int getLayoutDirection(); @Override boolean onLayoutDirectionChanged(int layoutDirection); @Override @SuppressLint("NewApi") void setAlpha(int alpha); @Override @SuppressLint("NewApi") void setColorFilter(@Nullable ColorFilter colorFilter); final void setText(@Nullable CharSequence text); final String getText(); }
TextBadge extends BadgeDrawable { public final String getText() { return text; } TextBadge(@NonNull Context context, @NonNull BadgeShape shape); protected  TextBadge(@NonNull BadgeShape shape, @ColorInt int badgeColor, @ColorInt int textColor); @Override @SuppressLint("NewApi") void draw(@NonNull Canvas canvas); @Override int getLayoutDirection(); @Override boolean onLayoutDirectionChanged(int layoutDirection); @Override @SuppressLint("NewApi") void setAlpha(int alpha); @Override @SuppressLint("NewApi") void setColorFilter(@Nullable ColorFilter colorFilter); final void setText(@Nullable CharSequence text); final String getText();  }