如何在 Android 的文本视图上用印地语书写
是否可以在 android 的文本视图中用另一种语言字体书写 例如,我
TextView tv = new TextView(this);
tv.setText("HEllo Android");
在这里创建了我用英语写了Hello Android,如何用印地语编写它。
我已经使用了图像,它工作正常,
<ImageView android:id ="@+id/header2"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:gravity="center"
android:layout_gravity="center"
android:paddingTop="0dip"
android:src="@drawable/why00learn00spanish_index"
>
<ImageView/>
任何帮助将不胜感激。
is it possible to write in another language font with in text view in android
for example i have created
TextView tv = new TextView(this);
tv.setText("HEllo Android");
here i have wrote Hello Android in English how i can wrote it in hindi language.
i have used image its working fine
<ImageView android:id ="@+id/header2"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:gravity="center"
android:layout_gravity="center"
android:paddingTop="0dip"
android:src="@drawable/why00learn00spanish_index"
>
<ImageView/>
any help would appreciate.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
下载OTF印地语文件并将其放入资产文件夹中。在活动中运行代码
Download the OTF hindi file and put it into assets folder. Run the code in an activity
是的,当然有可能。
当然可以,你可以进行本地化,也可以直接在其中设置文本 tv.setText("हेल्लो");如果你想成像它会变得模糊
Yes of course its possible.
of course its possible ,either u can perform localization or directly set text into it tv.setText("हेल्लो"); If you will images it will get blur