Hello! I launch the second activation in the standard way as follows:
public void showCalendarActivity() { Intent intentTask = new Intent(this, CalendarActivity.class); startActivityForResult(intentTask, 1); } and get:
If I run the second activation as a Dialog:
public void showCalendarActivity() { Dialog dialog = new Dialog(this); dialog.setContentView(R.layout.activity_calendar); dialog.show(); } I get:
Is there a way to get this:
Those. Dialog, but with ActionBar above?
UPDATE
Using the tips, he added the Toolbar and in the manifest he set the android:theme="@style/Theme.AppCompat.Dialog" style android:theme="@style/Theme.AppCompat.Dialog" . I call the first way, as usual activit:
Intent intentTask = new Intent(this, CalendarActivity.class); startActivityForResult(intentTask, 1); It turned out something like the desired result:
But for some reason the calendar became "transparent". How to fix this problem? And also how to remove the title from the toolbar? In the layout layout, the title property is not set. And how to center the top inscription?
To make it like this:
And even better to remove the upper inscription too.





