我正在开发一个应用程序,它需要两种语言的支持(英语&北印度语)。我对英语设计很熟悉,但对于如何在印地语中创建用户界面我没有任何想法。如何在印地语中创建android用户界面?
任何人都可以请帮助我如何创建android用户界面在印地文......? 我想用以下的XML文件在印地文的意思是在名称&密码按照下面的图像,我需要得到印地文单词..但我保留印地文文本意味着它是显示框代替用户名&密码。正如你可以在下面找到按钮。创建了两个动态文本视图。英文文本正在显示,但会显示北印度文字显示框。
main.xml中
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layoutbase"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1">
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="30px"
android:text="Username"/>
<EditText
android:id="@+id/editText1"
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</EditText>
</TableRow>
<TableRow
android:id="@+id/tableRow2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" >
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="30px"
android:text="नमस्ते"/>
<EditText
android:id="@+id/editText2"
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</EditText>
</TableRow>
</TableLayout>
输出显示盒按如下图
你需要针对Android 2.3及更高版本。那么印地文字体应该可以访问。 – Cheesebaron 2012-07-13 07:39:54
雅,我使用2.3,但不知道如何显示印地文字体。 – 2012-07-13 07:40:40
根据这个错误报告,它不适用于每个2.3设备:https://code.google.com/p/android/issues/detail?id=4153它应该与ICS一起工作。这个线程描述了如何在你的应用中使用你自己的字体:http://stackoverflow.com/questions/4395309/android-want-to-set-custom-fonts-for-whole-application-not-runtime – Cheesebaron 2012-07-13 07:48:17