What's The Differents Between Activity Which Theme Is Dialog And The Class Extends Dialog?
To show a Dialog , there are 2 ways. 1.Activity, theme is @android:style/Theme.Dialog 2.Class extends Dialog But, what's the different? and their advantages and disadvantages?? whi
Solution 1:
If you extend Dialog class then you can use the Dialog as a layer over the actual Activity (the one that needs to show the Dialog). If you create an Activity that shows a Dialog then you let back the calling activity just for showing a Dialog.
I think the main difference is that one is an Activity and the other can be used as a Fragment and thus can be a layer inside another Activity.
Post a Comment for "What's The Differents Between Activity Which Theme Is Dialog And The Class Extends Dialog?"