java Antenna Pod#06

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java Antenna Pod#06相关的知识,希望对你有一定的参考价值。

//Before adding @SuppressLint annotation
  @SuppressLint("AppCompatMethod")
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      if (Build.VERSION.SDK_INT >= 11) {
         supportRequestWindowFeature(WindowCompat.FEATURE_ACTION_BAR_OVERLAY);
      }
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
      super.onCreate(savedInstanceState);
     getSupportActionBar().setBackgroundDrawable(new ColorDrawable(0x80000000));
 }
     
//After adding @SuppressLint annotation
  @SuppressLint("AppCompatMethod")
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      if (Build.VERSION.SDK_INT >= 11) {
         requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
      }
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
      super.onCreate(savedInstanceState);
     getSupportActionBar().setBackgroundDrawable(new ColorDrawable(0x80000000));
 }

以上是关于java Antenna Pod#06的主要内容,如果未能解决你的问题,请参考以下文章

java Antenna Pod#07

java Antenna Pod#05

java Antenna Pod#04

java Antenna Pod#03

java Antenna Pod#02

antenna