Java 在整个背景中制作图像背景

Java 在整个背景中制作图像背景,java,android,Java,Android,我想让我的登录活动与背景关闭整个活动,包括手机本身的时钟像这样 这是我的密码 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="

我想让我的登录活动与背景关闭整个活动,包括手机本身的时钟像这样

这是我的密码

 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:background="@drawable/bgd2"
    tools:context=".Signin">

但我的输出是这样的

我需要删除橙色条,使其与第一个图像相同

如何按照这种风格制作:

  <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="colorControlNormal">#FFF</item>
        <item name="colorControlActivated">#FFF</item>
    </style>

@颜色/原色
@颜色/原色暗
@颜色/颜色重音
#FFF
#FFF

您需要使用NoActionBar样式删除ActionBar颜色

有两种选择

  • 将windowNoTitle样式放入style.xml中 例如:

    
    真的
    

  • 将此代码放在活动上

    requestWindowFeature(窗口功能\u无\u标题)
    getSupportActionBar().hide()

  • 补充: 如果还隐藏了导航按钮,请在样式XML中使用全屏选项

    <item name="android:windowFullscreen">true</item>
    
    true
    
    您需要使用NoActionBar样式删除ActionBar颜色

    有两种选择

  • 将windowNoTitle样式放入style.xml中 例如:

    
    真的
    

  • 将此代码放在活动上

    requestWindowFeature(窗口功能\u无\u标题)
    getSupportActionBar().hide()

  • 补充: 如果还隐藏了导航按钮,请在样式XML中使用全屏选项

    <item name="android:windowFullscreen">true</item>
    
    true