android Activity 交易风格?

标签 android android-layout

我需要知道在 android 中是否可以使用事务样式,例如,如果我启动主要 Activity ,我需要去或切换到第二个 Activity ,我需要一些动画,如弹出窗口、弹出窗口等,用于下一个 Activity View 。是否可行?

最佳答案

使用 Intend 进行另一项 Activity 。

 Intent intent = new Intent(SourceActivity.this, TagetActivity.class);
          startActivity(intent);

进一步了解 Intent :

http://www.castlerockresearch.in/dev/2010/08/understanding-intents-and-intent-filters-in-android/

弹出动画见此链接:

http://android-codes-examples.blogspot.com/2011/04/animated-customized-popup-transparent.html

关于android Activity 交易风格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5879669/

相关文章:

java - 无法启动 Activity ComponentInfo - 更改为 setContentView()

java - 单击旁边的自定义对话框会消失

android - Cordova 模拟器没有启动

java - 如何从给定类 Item 获取数组?

android - 如何在选项卡 Activity 的 fragment 中使用 onCreateOptionsMenu? (夏洛克 Action 条)

java - 设置背景颜色上的 NPE

android - 如何在 firebase 上节省时间(日/月/年)?

android - ListView 返回对 View onClick 的重复引用

java - 无法为 Android Studio 插入值

android - 由于setCotentView(R.layout_file_name)行的内存不足异常,导致应用程序崩溃