Thursday, February 21, 2019

Dialog view for new screen

A Dialog view use to show an text inform to user.

If we want a new screen float on current screen like Dialog, add this line to class declare in AndroidManifest.xml.
android:theme="@android:style/Theme.Holo.Light.Dialog.NoActionBar"
This feature require android:minSdkVersion="11".


New class now look like this.

It too small, we will change layout width to 270dp.


Now it look more professional.

No comments:

Post a Comment