I think what your talking about is a custom dialog box? Tell me if that's wrong. BUT here are some links to get you started if what you want is a custom dialog box
Android - Activity that does not fill the parent screen
http://www.helloandroid.com/tutorials/how-display-custom-dialog-your-android-application