在AndroidMainfest里面的activity增加一个自定义的DialogTheme就可以啦 效果图如下:
<activity android:name=".Acitivity.LoginActivity" android:theme="@style/DialogThem" android:label="用户登录"> </activity>
<style name="DialogTheme" parent="Base.Theme.AppCompat.Light.Dialog"> <item name="android:width">200dp</item> </style>