1. Are you ready for the Galaxy S20? Here is everything we know so far!

How do I create multi-color input editor text?

Discussion in 'Developer Forums' started by bin_per, Nov 8, 2020.

  1. bin_per

    bin_per Lurker
    Thread Starter

    As shown in the picture below, you want to create EditText, which allows users to enter text by color.
    Currently, we make two EditText and TextViews that are inputted and printed.
    EditText with textWatcher listener, so you can start with TextView.
    Computes the currently selected color and character location to change and display the SpanableStringBuilder.

    Here's the question:
    1. How do I not print the text entered in EditText?
    (EditText does not want to display on the screen after receiving input only.)
    2. Is there a better way to create EditText for multiple colors?

    upload_2020-11-9_9-53-26.png
     

    Attached Files:




    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...