如何在文本视图中显示“ \\\\”

| 我正在使用
TypeFace
在应用中显示泰米尔语字体。字母是这样的
\"fe;j r\\;b ftrk;\"
我将其保存在Strings文件中,并尝试在UI上进行检索。但是
\"\\\"
逃脱了下一个字符,我错过了一个字符:(事实上\\代表一个字母,我希望显示\\。如何执行此操作。 谢谢您的时间。 我的代码如下
package com.mayuonline.kanthan;

import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.widget.TextView;

public class WelcomeActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Typeface tf = Typeface.createFromAsset(getAssets(), \"font/Bamini.ttf\");
        TextView TextViewWelcome = (TextView)findViewById(R.id.textViewWelcome);
        TextViewWelcome.setTypeface(tf);
        TextViewWelcome.setText(R.string.WelcomeTitle);
       }
}
    
已邀请:
        您需要通过两次使用escape5来转义ѭ4。这将在字符串中插入单个“ 4”。     

要回复问题请先登录注册