android - How to translate animation from top?
问题描述
I try to animate move item from to to it current position in xml
I try this
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="@android:integer/config_longAnimTime"
android:fromYDelta="0%p"
android:toYDelta="0"
/>
But faile. I do not understant fully how to coerce this Android to make this. Need you help please.
解决方案
我想我建立了解决方案
-100%p 而不是 0%p
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="@android:integer/config_longAnimTime"
android:fromYDelta="-100%p"
android:toYDelta="0"
/>
推荐阅读
- asp.net - 无法弄清楚 ASP.NET Core 2.1 的初始化顺序
- android - 对齐 AlertDialog 文本
- html - 关于将鼠标悬停在 HTML 表格行上时显示按钮
- reactjs - 如何在 Antd Collapse 中展开所有面板而不将每个 tab 键指定为 activeKey
- c - 调用 stat 后的权限覆盖
- python - 将 Selenium 与 Python 一起使用以单击 href 按钮
- vba - 搜索标题中的单词,然后删除找到该单词的标题
- c# - 执行 .Distinct() 时忽略匿名类型字符串或字符成员的大小写
- apache - 重写到该子目录后在子目录中重写请求
- javascript - 我想要一个小的 javascript HTML 片段?