如何删除android中的蓝色操作栏?
16lz
2021-01-22
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 {
}
更多相关文章
- Android Studio 出现 Gradle's dependency cache may be corrupt
- Android Service使用方法--简单音乐播放实例
- 绑定本地Service和远程Service并调用其中方法
- "AndroidStudio 单元测试"-最简单最快的方法-ApplicationTest
- android在onCreate()方法中获取View的宽度与高度的方法实战
- W/System.err:at java.net.PlainDatagramSocketImpl.bind(PlainDa
- Android Studio获取数字签名(SHA1)的方法
- Android Volley:使用方法总结及实例解析
- eclipse下运行EasyAR官方sample的方法