I have got a linearlayout form. This form has got a 2 fields. I would like get this effect:
Two fields, one is hidden (under top bar). When i click button 'ok' this linear layout go down and display next field (hidden field). How get this effect?
I have got a linearlayout form. This form has got a 2 fields. I would like get this effect:
Two fields, one is hidden (under top bar). When i click button 'ok' this linear layout go down and display next field (hidden field). How get this effect?
RelativeLayout
.android:visibility="gone"
。android:layout_below="@id/yourFirstField"
第二个属性。onClickListener
到按钮,并在 Java 类的侦听器主体中,将第一个字段的可见性更改为可见(我猜它是一个 EditText,所以EditText.VISIBLE
)android:animateLayoutChanges="true"
到您的 RelativeLayout(这两个项目的容器)。这应该工作!我希望这有帮助!!