Android使用LinearLayout作为应用程序上所有其他LinearLayout的背景

Android使用LinearLayout作为应用程序上所有其他LinearLayout的背景,android,styles,themes,drawable,android-linearlayout,Android,Styles,Themes,Drawable,Android Linearlayout,我有一个线性布局,里面有另外两个线性布局。其中每一个都有一个ImageView。 我需要将此LinearLayout设置为我应用程序的所有其他LinearLayout的背景。 我尝试了“包含”和“合并”,但没有成功,因为我需要在“背景线性布局”中放置其他线性布局 然后我尝试了“样式”,但我不知道如何在LinearLayouts中添加ImageView。有可能吗? 最后,现在我尝试使用“Drawable”,但我不知道这是否是解决方案 我需要一些想法,一些帮助,有人能帮我吗 这是我的“背景线性布局”

我有一个线性布局,里面有另外两个线性布局。其中每一个都有一个ImageView。 我需要将此LinearLayout设置为我应用程序的所有其他LinearLayout的背景。 我尝试了“包含”和“合并”,但没有成功,因为我需要在“背景线性布局”中放置其他线性布局 然后我尝试了“样式”,但我不知道如何在LinearLayouts中添加ImageView。有可能吗? 最后,现在我尝试使用“Drawable”,但我不知道这是否是解决方案

我需要一些想法,一些帮助,有人能帮我吗

这是我的“背景线性布局”:



感谢并为我糟糕的英语感到抱歉

风格可能是最好的选择,尝试创建如下风格:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="MyTheme" parent="@android:style/Theme.Light">
<item name="android:windowBackground">@drawable/my_image</item>
</style>

@可绘制/我的图片
并将整个应用程序配置为使用清单中的主题属性,例如

<application
   android:icon="@drawable/icon"
   android:label="@string/app_name"
   android:theme="@style/MyTheme"
   ...
</application>

但我需要在布局中添加两个ImageView,每个都有不同的X,Y位置。我怎么做到的?谢谢
<application
   android:icon="@drawable/icon"
   android:label="@string/app_name"
   android:theme="@style/MyTheme"
   ...
</application>