如何使一个自定义的EDITTEXT,这样它看起来像45度旋转的android [英] How to make a custom Edittext,so that it will look like as 45 degree rotated in android
本文介绍了如何使一个自定义的EDITTEXT,这样它看起来像45度旋转的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使一个自定义的EDITTEXT,这样它看起来像45度旋转的Android,它应该可编辑的,这样日EUSER可以输入文字上旋转Edittext.I尝试它。但是我没有得到任何解决方案it.Please给一些想法做到这一点。
How to make a custom Edittext,so that it will look like as 45 degree rotated in android and it should editable so that th euser can enter text on that rotated Edittext.I tried it.But I am not getting any solution for it.Please give some idea to do this.
推荐答案
我找到一个不同的方式,它是工作。
I find a different way and it is working.
EditText lEditTxt = (EditText)findViewById(R.id.Edit_ID);
Animation lAnim = new RotateAnimation(0, -45, 250, 50);
lAnim.setRepeatCount(Animation.INFINITE);
lEditTxt.startAnimation(lAnim);
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
这篇关于如何使一个自定义的EDITTEXT,这样它看起来像45度旋转的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文