0
我有一个RelativeLayout的一个EditText,我希望动态地定位它(在运行时),具有旋转如果可能的话。任何人都可以帮忙吗?移动的EditText到特定位置
我有一个RelativeLayout的一个EditText,我希望动态地定位它(在运行时),具有旋转如果可能的话。任何人都可以帮忙吗?移动的EditText到特定位置
进行重新定位,您可以使用setTranslationX()
和setTranslationY()
。 轮换使用setRotation()
。 您可以在这里找到更多的信息:http://developer.android.com/reference/android/view/View.html
是一个的EditText观的延伸?因为我看不到这些方法,所以我可以使用setTransformationMethod(),这是否有用? – jpmastermind
是,延伸的EditText查看你可以在这里看到,有这些方法:http://developer.android.com/reference/android/widget/EditText.html – Rotem
Android 3.0的+将让这样的方法,#JP –