但我试了试其它的方法怎么都有错,比如  textColor方法

解决方案 »

  1.   

    查自己下载的sdk中android-sdk-windows\docs的api文档  
    final void  setText(int resid)
    final void  setText(char[] text, int start, int len)
    Sets the TextView to display the specified slice of the specified char array.
    final void  setText(int resid, TextView.BufferType type)
    final void  setText(CharSequence text)
    Sets the string value of the TextView.
    void  setText(CharSequence text, TextView.BufferType type)
    Sets the text that this TextView is to display (see setText(CharSequence)) and also sets whether it is stored in a styleable/spannable buffer and whether it is editable.
      

  2.   

    http://developer.android.com/reference/android/widget/TextView.html
    建议看一下原文,别人嚼过的馍不香。
      

  3.   


    api文档在哪,在这个目录下没找到,能不能目录再具体些,新手啊
      

  4.   

    肯定有这样的方法了  对应属性:android:text=“”
      

  5.   

    final void  setText(int resid)
    final void  setText(char[] text, int start, int len)
    Sets the TextView to display the specified slice of the specified char array.
    final void  setText(int resid, TextView.BufferType type)
    final void  setText(CharSequence text)
    Sets the string value of the TextView.
    void  setText(CharSequence text, TextView.BufferType type)
    Sets the text that this TextView is to display (see setText(CharSequence)) and also sets whether it is stored in a styleable/spannable buffer and whether it is editable.怎么会没有啊
      

  6.   

    你直接查API  可能没有,你可以去查查他的父类,父类没有,查爷爷类,总能查到的,祝你好运
      

  7.   

    我用过的,有。直接 TextView.setText(String str1)就可以了。