我需要在屏幕的右侧部分打开活动,但仍然在屏幕的左侧部分查看旧活动。使用展开动画打开活动
它可以是类似于对话框的东西,但我需要指定新活动的位置并删除重叠外观。
我该怎么做?
我已经完成了我的第一步。将活动放在特定的位置并看到屏幕左侧的主体。
我已经使用了以下样式:
<style name="Theme.Transparent" parent="android:Theme">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsFloating">false</item>
<item name="android:backgroundDimEnabled">false</item>
</style>
在我的布局文件我已经设置好的我的线性布局这样
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="200dp"
android:layout_height="200dp"
android:orientation="vertical"
android:background="@drawable/background_login"
android:layout_gravity="top|right">
这样的活动去,我想。 现在我只需要用展开动画打开活动并用折叠动画关闭它。 有人能告诉我如何?
像普通PC中的几个应用程序窗口? – 2012-03-28 12:59:02