嗨,我想在 Android 中用 Java 编写阿拉伯语,这是代码
public class hospital extends Activity {
ListView listView,l1;
ArrayAdapter<String> adapter,adapter1,adapter2;
String[] location,loc1,loc2;
Button home,map;
TextView name,address,phone;
WebView maps;
String hospital_name,hospital_address,hospital_phone,url;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.hospital_location);
home = (Button)findViewById(R.id.home);
home.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
startActivity(new Intent(hospital.this, MainActivity.class ));
finish();
}
});
listView = (ListView) findViewById(R.id.hospital_list_location);
location = new String[] { "Al rabia","Tabarbor","Tla' al Ali","Daheat elrawda" };
此代码将像照片中一样写
当我想在这样的位置写阿拉伯语时。location=new String[]{"مستشفى هبه"}
想工作,出现奇怪的字眼