gpt4 book ai didi

java - 如何删除android中的蓝色操作栏?

转载 作者:太空宇宙 更新时间:2023-11-03 12:49:57 24 4
gpt4 key购买 nike

我正在创建一个 Android 应用程序,但我遇到了一些问题,我无法删除这个蓝色标题,或者我不知道它是如何命名的,或者操作栏?我尝试了一些方法,但它们没有用。 enter image description here

<?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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com