android工程 res/values/strings.xml中\n 和 %d
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="app_name">活体检测示例</string>
<string name="result_note"> 比对结果 \n(请先完成前两步)</string>
<string name="start_note">请在光线明亮的环境中进行\n请取下会遮挡面部的物件,包括眼镜\n请保持在屏幕中央,避免转头或移出屏幕</string>
<string name="start_button">开始</string>
<string name="note_01">请将脸置于正中并在光线充足的情况下进行检测</string>
<string name="note_5">已完成,请稍后...</string>
<string name="note_wink">第<xliff:g id="number">%d</xliff:g>步,请眨眼</string> <string name="note_mouth">第<xliff:g id="number">%d</xliff:g>步,请张嘴</string> <string name="note_nod">第<xliff:g id="number">%d</xliff:g>步,请缓慢点头</string> <string name="note_shakehead">第<xliff:g id="number">%d</xliff:g>步,请左右转头</string> <string name="dialog_msg">请保持脸在屏幕中央\n并不要动太快,点击确定重新开始活体模块</string> <string name="dialog_title">肖像提示</string> <string name="cancel">取消</string> <string name="restart_preview">重新预览</string> </resources>