Android TextView : “Do not concatenate text displayed with setText”

前端 未结 10 1538
小鲜肉
小鲜肉 2020-12-02 04:01

I am setting text using setText() by following way.

prodNameView.setText(\"\" + name);

prodOriginalPriceView.setText(\"\" + String.format(g         


        
10条回答
  •  时光说笑
    2020-12-02 04:57

    If you don't need to support i18n, you can disable this lint check in Android Studio

    File -> Settings -> Editor -> Inspections -> Android -> Lint -> TextView Internationalization(uncheck this)

提交回复
热议问题