Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make activity not full screen?

how to make the app not full screen, as in this screenshot? https://dl.dropboxusercontent.com/u/73143561/Screenshot_2013-05-29-05-47-07%5B1%5D.png

like image 602
user1261129 Avatar asked Jun 04 '13 07:06

user1261129


1 Answers

Use this theme for your activity in the AndroidManifest.xml file

android:theme="@android:style/Theme.Dialog"

If you're using AppCompat, use

android:theme="@android:style/Theme.AppCompat.Dialog" 

or

android:theme="@android:style/AppCompat.Light.Dialog"
like image 115
yuva ツ Avatar answered Oct 23 '22 19:10

yuva ツ