怎么自己扩展出的Animation弄到xml里面?

sharetop 2010-01-29 03:46:55
自己做了个FlipAnimation extends Animation 功能没问题了,直接在代码中使用它也正常。

但是想弄到 res/anim/dialog_out.xml 中去,就不知道怎么办了。

系统自带的 ScaleAnimation 到XML中写成 scale ,RotateAnimation变成rotate,我的怎么写?

试过各种写法,带不带包名,都报错,找不到!!!

有弄过的同学吗?给点思路多谢了。
...全文
85 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
kabing 2010-03-02
  • 打赏
  • 举报
回复
<包名+类名>
比如说你在ColorButton类中自绘了button,ColorButton,包名就是ColorButton所在的包
sharetop 2010-03-02
  • 打赏
  • 举报
回复
嗯,看来没指望了。。。
djt_1982 2010-02-03
  • 打赏
  • 举报
回复
我也有类似的问题,写了一个View,却不知道怎么用XML加到Activity上,只能用代码的方式加入
sharetop 2010-02-02
  • 打赏
  • 举报
回复
再顶,为什么没有人回答呢?是无法实现吧?
pang040328 2010-01-29
  • 打赏
  • 举报
回复
帮顶

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧