I am working with chat application. I have developed a grid layout for smileys. I have two activities A and B. A is for chat window with smiley button and B for smileys grid layout. Activity B has some to generate a layout of smileys. I want to popup an activity B when user presses smiley button in A. How to achieve this??
编辑清单文件:
<activity android:theme="@android:style/Theme.Dialog">
如果我遇到了您的问题,那么您可以静态创建带有笑脸图像的布局,并在活动B中调用并在活动A中使用。
You can create a simple activity and for it's design, create a layout that is not full screen layout:
Then add this Activity
in the manifest file and add this theme to it:
android:theme="@android:style/Theme.Translucent.NoTitleBar"
And then you can add a blur effect to the surrounding of this Activity
by adding this in onCreate
of this Activity
:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND, WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.