在strings.xml中定义的字符串未显示在“资源选择器”在图形布局(main.xml) [英] Strings defined in strings.xml not displayed in "Resource chooser" in graphical layout (main.xml)

查看:89
本文介绍了在strings.xml中定义的字符串未显示在“资源选择器”在图形布局(main.xml)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在5.5节中使用此教程,我尝试分配celsius字符串属性到第一个单选按钮的text属性,fahrenheit到第二个

Using this tutorial at section 5.5, I attempted to "Assign the 'celsius' string attribute to the 'text' property of the first radio button and "fahrenheit" to the second"

资源选择器(错误地调用(?),上面的文章中的参考选择器)显示,但是我只能在两个字符串之间进行选择:app_name和hello。 celsius和fahrenheit属性不被提出。

The "Resource Chooser" (called, by mistake (?), "Reference chooser" in the above article) is displayed but...I can choose only between two strings : "app_name" and "hello". "celsius" and "fahrenheit" attributes are not proposed.

你如何解决这个问题?

推荐答案

strings.xml文件必须经过修改才能被修改,以便对其进行修改!

The strings.xml file has to be SAVED once modified in order to have its modifications taken into account !

这篇关于在strings.xml中定义的字符串未显示在“资源选择器”在图形布局(main.xml)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆