activitygroup 切换动画效果如何实现

时间:2021-05-20

**一下提供伪代码,仅说明自己的理解,思路**/
/*************************************************/

AActivity,BActivity,CActivity,DActivity 都extends ActivityGroup.
A1Activity,B1Activity,C1Activity,D1Activity 都extends Activity.
A2Activity,B2Activity,C2Activity,D2Activity 都extends Activity


AActivity.this.startActivity(A1Activity.class)
BActivity.this.startActivity(B1Activity.class)
CActivity.this.startActivity(C1Activity.class)
DActivity.this.startActivity(D1Activity.class)


A1Activity.this.startActivity(A2Activity.class)
B1Activity.this.startActivity(B2Activity.class)
C1Activity.this.startActivity(C2Activity.class)
D1Activity.this.startActivity(D2Activity.class)


A1Activity.this.getParent().startActivity(A2Activity.class)
B1Activity.this.getParent().startActivity(B2Activity.class)
C1Activity.this.getParent().startActivity(C2Activity.class)
D1Activity.this.getParent().startActivity(D2Activity.class)

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章