Reputation:
Just on a lighter note, can u guys give me a hint how to make a view like this. I m not asking to write code for me. I just need few suggestions. When click on bottom right corner a new screen shows which has transparent background where a little bit main activity is visible and contents are not aligned vertical or horizontal. Your ideas would be appreciated
Upvotes: 0
Views: 69
Reputation: 44
Use full screen dialog with Constraint Layout or Relative Layout
Dialog dialog = new Dialog(context, R.style.DialogTheme);
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
dialog.setContentView(R.layout.your_custom_layout);
dialog.getWindow().setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT);
dialog.show();
Upvotes: 1