I have been using android dialog builder by inflating layouts in it. Everything is working fine and perfect. But now, I want to change the way of opening of the dialog builder. I want open the dialog builder like the swipe card. .i.e. From left to right OR top to bottom etc.
I know stackoverflow is not all about asking questions, but showing some effort at least. But issue is, I am not able to find any examples or clues on it. Need some advice, or reference to be followed.
Thanks!
Dialog Opening Code:
final Dialog dialog = new Dialog(main.this);
dialog.setContentView(R.layout.prompt_dialoge);
dialog.setTitle("Draw your signature below");
Button dialogButton = (Button) dialog.findViewById(R.id.btnOk);
// if button is clicked, close the custom dialog
dialogButton.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
}
});
dialog.show();