开发者

how to create edit text control

开发者 https://www.devze.com 2023-02-05 22:01 出处:网络
The current edit text control is not capable of displaying/Rendering Hindi text correcltly , hence I need to develop an edit text from scratch, i have done this in winCE(overridding CEdit), so i have

The current edit text control is not capable of displaying/Rendering Hindi text correcltly , hence I need to develop an edit text from scratch, i have done this in winCE(overridding CEdit), so i have that cpp code, i am new to android can some body please tell me how can i create the edit text(override) in android, i have installed the android SDK's for windows XP and using eclipse as an editor, if requi开发者_开发知识库res i have no problems to move to Ubuntu as the development environment.


You dont need to make any Edit Text for displaying hindi font...

EditText support unicode format.. just make a string hindi unicode and set the text of EditText with the string as simple it is... I did it for displaying Chinese Font .. It works grt.. You just need to know the Unicode of hindi characters

for e.g

String s = " \u4E01 \u4E02";

EditText t = (EditText)findViewById(R.id.EditText01);

t.setText(s);

0

精彩评论

暂无评论...
验证码 换一张
取 消