• How to create id frm string programatycly

    From Jakub@jak74@interia.pl to comp.mobile.android on Thu Aug 6 14:50:16 2026
    From Newsgroup: comp.mobile.android


    I have this string

    val abc = "zad"

    and element TexView

    how to create id from string dynamicly and set to the element?
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From R.Wieser@address@is.invalid to comp.mobile.android on Fri Aug 7 12:10:05 2026
    From Newsgroup: comp.mobile.android

    Jakub,

    I have this string

    val abc = "zad"

    and element TexView

    how to create id from string dynamicly and set to the element?

    Why do you think you would need to create an ID ?

    I threw "Android TexView dynamic string" into DDG and got https://developer.android.com/reference/android/widget/TextView as the first result. In it there is a description of the "setText" method (multiple possibilities).

    It seems you are looking for this one :

    public final void setText (char[] text, int start, int len)

    Regards,
    Rudy Wieser



    --- Synchronet 3.22a-Linux NewsLink 1.2