Mar*_*lac 2 android programming-languages
我想从文件string.xml中的活动的editText写一些值.我将用一个例子来解释:
在活动中我有2个editText和1个按钮来提交信息.想象一下editText用于插入NAME和SURNAME.我在string.xml中有以下代码
<string name="person_name"></string>
<string name="person_surname"></string>
Run Code Online (Sandbox Code Playgroud)
在开始时,这些字段将为空,但在提交信息后,我想写出从该文件中的editTexts获得的值.
有什么建议吗?
提前致谢
| 归档时间: |
|
| 查看次数: |
5328 次 |
| 最近记录: |