首页 > 系统 > Android > 正文

android布局中显示隐藏控件的动画

2019-11-09 17:29:12
字体:
来源:转载
供稿:网友

有时候我们需要点击按钮 显示一些LinearLayout 的显示或者隐藏 我们可以在xml 布局里面添加一个animateLayoutChanges 为true 就可以啦

android:animateLayoutChanges="true" 表示开启系统的布局动画

<LinearLayout    android:layout_width="match_parent"    android:layout_height="wrap_content"    android:animateLayoutChanges="true"    android:orientation="vertical">


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表