Java Android Textview未显示印地语文本的完整字体

Java Android Textview未显示印地语文本的完整字体,java,android,textview,typeface,android-typeface,Java,Android,Textview,Typeface,Android Typeface,xml文件 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/holo_blue_g

xml文件

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/holo_blue_green"
    android:orientation="vertical" >

                <TextView
                    android:id="@+id/tv_question"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:ellipsize="none"
                    android:text="………यांच्या मते १८५७  चा  उठाव म्हणजे “भारतीयाचे पहिले स्वातंत्रयुद्ध ” होय ."
                    android:textColor="@android:color/black"
                    android:textStyle="bold" />
</LinearLayout>


भारतीयाचे - 这个词不完整

将编码更改为“windows-1250”

尝试动态添加文本,或者在eclipse文本编辑器中粘贴文本,并在显示与上图相同的视图后检查该视图中的外观。您将执行以下步骤

步骤1:将TTf文件粘贴到Assets文件夹中,并在Fonts/Verdana.TTf名称下方 第二步:动态使用字体…如下所示

 TextView myTextView=(TextView)findViewById(R.id.textBox);
 Typeface typeFace=Typeface.createFromAsset(getAssets(),"fonts/mytruetypefont.ttf");
 myTextView.setTypeface(typeFace);

最好的

你能发布完整的布局文件代码吗?是的,我更新了代码,请检查@GrIsHuTry以使用其他印地语字体,或者删除txtQues.setTypeface(_maratiTypeface);我们尝试了马拉地语和不同的印地语问题,结果是一样的@KapilVatsTry通过设置android:maxEms=“50dp”进行设置,然后进行检查。