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

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

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

             


        
5条回答
  •  离开以前
    2020-11-30 19:15

    A good practice is write text inside String.xml

    example:

    String.xml

    
    
        Yellow
    
    

    and inside layout:

    
    

提交回复
热议问题