hardcoded string “row three”, should use @string resource

前端 未结 5 1891
抹茶落季
抹茶落季 2020-11-30 18:39

I\'m a beginner android developer , I was trying to run this Linear Layout in eclipse :

             


        
5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 19:20

    You must create them under strings.xml

    Close    
    

    You must replace and reference like this

    android:text="@string/close"/>
    

    Do not use @strings even though the XML file says strings.xml or else it will not work.

提交回复
热议问题