简体   繁体   English

所有设备的弯曲背景尺寸相同

[英]Same size curved background for all devices

如何获得我的应用程序的背景,但是我想要相同的曲线(相同的半径)和相同的蓝色屏幕尺寸,我该怎么做?

<item android:drawable="?android:colorBackground"/>

<item android:gravity="center"
    android:drawable="?android:colorBackground">
<shape
    android:shape="rectangle">
    <solid
        android:color="@color/colorPrimaryDark"/>
</shape>
</item>

<item android:bottom="400dp"
    android:left="-120dp"
    android:right="-120dp"
    android:top="-400dp">
        <shape
            android:shape="oval">
            <solid
                android:color="@color/colorPrimary"/>
        </shape>

</item>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM