文本框的渐显
来源:互联网 发布:js style属性值 编辑:程序博客网 时间:2024/05/17 12:22
需要两个配置文件 ,layout_animation_table.xml:
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2007 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.--><layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android" android:delay="50%" android:animation="@anim/slide_top_to_bottom" />
和slide_top_to_bottom.xml
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2007 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.--><set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator" > <translate android:duration="100" android:fromYDelta="-100%" android:toXDelta="0" /> <alpha android:duration="50" android:fromAlpha="0.0" android:toAlpha="1.0" /></set>
然后在相应的布局上加上:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layoutAnimation="@anim/layout_animation_table" android:animationCache="false" android:clipToPadding="false" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" />
就好
0 0
- 文本框的渐显
- 图片的渐显播放
- c#渐显窗口的实现
- 让你的文本链接渐隐渐显
- 用CSS实现图片渐显的效果
- C#中窗口渐显的方法
- CMMB与TMMB的较量结果渐显
- VC#中渐显窗口的方法
- JavaScript实现图片的渐显播放
- iphone隐藏,渐显Status Bar的方法
- VC#中渐显窗口的方法
- ugui中text的打字机渐显功能
- 公司网站上的页面的渐显效果
- JS特效:用鼠标事件实现图片的渐显效果
- js特效.鼠标移上去,图片渐显的方法
- 技术研究-QQ2009版按钮渐显渐隐的由来
- js实现图片渐隐渐显的切换效果
- Android实现渐显按钮的左右滑动效果
- CGContextAddLines和CGContextAddLineToPoint在线条半透明时候的区别
- cocos2dx3.2 某些UI白屏或使用ClippingNode造成部分手机白屏
- C#箴言:定义常量的两种方法
- “钢铁侠”马斯克为何屡次抨击人工智能,是炒作还是内藏玄机?
- 十三周项目一
- 文本框的渐显
- 3D游戏制作
- 初识SQL数据库之2
- Qt中qDebug 的使用
- mahout 使用grouplens数据集定制datamodel以及评估
- mac下解决chrome跨域访问
- 第十三周 OJ平台-统计元音字母个数
- 问题:Could not get lock /var/lib/apt/lists/lock
- 第十三周项目一数组大折腾(1)