适配器的android启动活动(过渡animiation方向的问题) [英] android start Activity in adapter (transition animiation direction problem)
问题描述
我是有在这里的问题:如何在适配器启动活动一>。不过,我想修改的过渡动画的方向。因为,一个适配器里面,你不能调用overridePendingTransition()。所以,不要你们知道如何使用背景和意图做呢?
I was having the problem in here : How to start Activity in adapter? . however, i would like to modify the transition animation direction. since, inside an adapter, you cannot call overridePendingTransition(). So do you guys know how to do it by using context and intent?
另外,我用我的自定义适配器的活动,做你们知道如何从适配器叫我自己的功能活动?
also, i have an activity using my customized adapter, and do you guys know how to call my own function in activity from the adapter?
太感谢你了! 一分钱
推荐答案
听起来像是你需要传递一个上下文到您的适配器,您可以覆盖构造和再通吗?
Sounds like you need to pass a Context into your adapter, can you override the constructor and pass one in then?
这篇关于适配器的android启动活动(过渡animiation方向的问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!