Java Code Examples for android.widget.TextView.BufferType

The following are Jave code examples for showing how to use BufferType of the android.widget.TextView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: EmoticonGIFKeyboard   File: EmoticonTextView.java   View Source Code Vote up 5 votes
@Override
@CallSuper
public void setText(CharSequence rawText, TextView.BufferType type) {
    final CharSequence text = rawText == null ? "" : rawText;
    final SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(text);
    if (mEmoticonProvider != null)
        EmoticonUtils.replaceWithImages(getContext(), spannableStringBuilder, mEmoticonProvider, mEmoticonSize);
    super.setText(spannableStringBuilder, type);
}
 
Example 2
Project: EmoticonGIFKeyboard   File: EmoticonButton.java   View Source Code Vote up 5 votes
@Override
@CallSuper
public void setText(CharSequence rawText, TextView.BufferType type) {
    final CharSequence text = rawText == null ? "" : rawText;
    final SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(text);
    if (mEmoticonProvider != null)
        EmoticonUtils.replaceWithImages(getContext(), spannableStringBuilder, mEmoticonProvider, mEmoticonSize);
    super.setText(spannableStringBuilder, type);
}
 
Example 3
Project: firefox-tv   File: InlineAutocompleteEditText.java   View Source Code Vote up 5 votes
@Override
public void setText(final CharSequence text, final TextView.BufferType type) {
    final String textString = (text == null) ? "" : text.toString();

    super.setText(textString, type);

    // Any autocomplete text would have been overwritten, so reset our autocomplete states.
    resetAutocompleteState();
}
 
Example 4
Project: GmArchMvvm   File: GmSecretTextView.java   View Source Code Vote up 4 votes
@Override
public void setText(CharSequence text, TextView.BufferType type) {
    super.setText(text, type);
    resetIfNeeded();
}
 
Example 5
Project: leoapp-sources   File: InfoButton.java   View Source Code Vote up 2 votes
/**
 * Delegiert von android.widget.Button
 *
 * @param text siehe {@link Button}
 * @param type siehe {@link Button}
 */
public void setText(CharSequence text, TextView.BufferType type) {
    b.setText(text, type);
}
 
Example 6
Project: leoapp-sources   File: InfoButton.java   View Source Code Vote up 2 votes
/**
 * Delegiert von android.widget.Button
 *
 * @param text siehe {@link Button}
 * @param type siehe {@link Button}
 */
public void setTextKeepState(CharSequence text, TextView.BufferType type) {
    b.setTextKeepState(text, type);
}
 
Example 7
Project: leoapp-sources   File: InfoButton.java   View Source Code Vote up 2 votes
/**
 * Delegiert von android.widget.Button
 *
 * @param resid siehe {@link Button}
 * @param type  siehe {@link Button}
 */
public void setText(@StringRes int resid, TextView.BufferType type) {
    b.setText(resid, type);
}