【发布时间】:2011-12-09 10:23:17
【问题描述】:
我有一个包含带有三个 RadioButtons 的 RadioGroup 的 Android 视图。 When one of the RadioButtons is selected, the user also has to enter text into an EditText control.如果选择了其他两个 RadioButton 中的任何一个,则不需要此额外信息。
我目前正在使用 RadioGroup 的 OnCheckedChangedListener 来确定何时检查新的 RadioButton,并通过将 EditText 的可见性设置为 View.GONE 来隐藏 EditText。然而,这有点不和谐,我想知道是否有一种方法可以让过渡动画化。这可能吗?如果可以,入门的关键是什么?
【问题讨论】:
标签: android animation android-edittext