I want to display an activity as a popup window at the bottom of my screen how can I implement that??
I made that activity to open as a popup window after some delay,for this I have used handler and set the android theme in manifest to Dialog and it is working too. But it is displaying it in the center of the screen but I want it to be displayed at the bottom of my scree.
Can anybody help me in this regard?
And the below is my code:
Handler handler=new Handler();
handler.postDelayed(new Runnable(){public void run(){Intent intent=new Intent(getApplicationContext(),Schedule_Popup_Activity.class); startActivity(intent);}}, delay);
And the changes I made in manifest xml file is:
<android name="Schedule_Popup_Activity
android:theme="@android:style/Theme.Dialog">
How to set this activity to the bottom of my screen with its height and width similar to an popup window size??
Thanks in advance...
PlacementMode=Bottom is to set the popup window at the bottom,is there anything similar for the activity also?