1、再androidmanifest.xml 中设置activity属性
  android:theme="@android:style/Theme.NoTitleBar.Fullscreen"//去掉状态栏及标题栏 2、再code中设置:
  在setContentView前面加入:requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏   getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);//去掉信息栏


另外再androidmanifest.xml文件中设置activity属性Theme.Dialog 等。
<style name="Theme.ActivityDialog" parent="android:style/Theme.Dialog">
        <item name="android:windowBackground">@null</item>
    </style>


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

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-01-11
猜你喜欢
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-12-17
  • 2022-12-23
相关资源
相似解决方案