두 언어 (영어 & 힌디어)로 지원해야하는 앱을 개발 중입니다. 나는 영어로 디자인하는 것에 익숙하지만 힌디어로 UI를 만드는 방법에 대해서는 전혀 모른다.힌디어로 안드로이드 UI를 만드는 방법은 무엇입니까?
아무도 힌디어로 안드로이드 UI를 만드는 법을 도와 줄 수 있습니까 ......? 힌디어 의미의 다음 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
예, 2.3을 사용하고 있지만 힌디어 글꼴을 표시하는 방법을 모릅니다. –
이 버그 보고서에 따르면 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