I am creating an android app but I have some problem I cant remove this blue heading or I don’t know how its called, or action bar ? I have tried some methods but they didn’t work.

我正在创建一个Android应用程序,但我有一些问题,我不能删除这个蓝色标题或我不知道它是如何调用,或动作栏?我尝试了一些方法,但它们没有用。

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"
    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"

    tools:showIn="@layout/activity_main"
    tools:context=".MainActivity"
    android:background="#9AEA30">

    <ImageView
        android:layout_width="250dp"
        android:layout_height="250dp"
        android:id="@+id/imageView"
        android:src="@drawable/discount"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true" />

</RelativeLayout>

7 个解决方案

#1


1

The easiest way to remove it is to make your Activity extend the Activity class and not the AppCompatActivity.

删除它的最简单方法是使Activity扩展Activity类而不是AppCompatActivity。

That is do something like this:

这是做这样的事情:

public class MyActivity extends Activity {

}

更多相关文章

  1. Android Studio 出现 Gradle's dependency cache may be corrupt
  2. Android Service使用方法--简单音乐播放实例
  3. 绑定本地Service和远程Service并调用其中方法
  4. "AndroidStudio 单元测试"-最简单最快的方法-ApplicationTest
  5. android在onCreate()方法中获取View的宽度与高度的方法实战
  6. W/System.err:at java.net.PlainDatagramSocketImpl.bind(PlainDa
  7. Android Studio获取数字签名(SHA1)的方法
  8. Android Volley:使用方法总结及实例解析
  9. eclipse下运行EasyAR官方sample的方法

随机推荐

  1. android Sqlite多线程访问异常解决方案
  2. 第九章:Android中的数据存取
  3. 进程(一) 1.1 Android中异步处理大杀器—
  4. Android视频缩略图(二)
  5. 【Android小项目】找不同,改编自"寻找房祖
  6. VMware虚拟机Ubuntu1804编译Android 10.0
  7. android设置activity全屏 | 无标题
  8. selector属性介绍
  9. Android Studio 3.0开始android Device M
  10. 【30篇突击 android】源码统计四