我正在创建一个 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>
最佳答案
你尝试了什么?
只需在 styles.xml
中添加即可
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
</style>
和
android:theme="@style/AppTheme"
在 AndroidManifest.xml
中的 application
部分。
关于java - 如何删除android中的蓝色操作栏?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33711380/