October 2018
Intermediate to advanced
464 pages
15h 17m
English
We start by adding a new theme to the existing styles.xml file to make our activity look like a dialog. Here are the steps to create the new theme and set the activity to use the new theme:
<style name="AppTheme.MyDialog">
<item name="android:windowIsFloating">true</item>
</style>
<activity android:name=".MainActivity" android:theme="@style/AppTheme.MyDialog"> ...