我需要为我的相机应用创建图像。我在另一个圆圈内创建了一个圆圈 当我在android studio上看到它时,它看起来很好,但是在真实设备上运行时它不一样。这里是第一个来自真实设备的图像,第二个来自android studio。在Android中的另一个圈内创建圈子
这里是我的代码,我使用创建它。
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Larger circle in white-->
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<padding android:top="5dp" android:bottom="5dp" android:right="5dp" android:left="5dp"/>
<stroke
android:width="1dp"
android:color="#ffffff"/>
</shape>
</item>
<!-- Smaller white circle in front -->
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid
android:color="#ffffff"/>
</shape>
</item>
</layer-list>
这是什么问题,为什么它表现出不同。
[如何在使用Android xml形状的圆圈内绘制圆圈?](http://stackoverflow.com/questions/21613308/how-to-draw-a-circle-inside-a-circle-使用-Android-xml-shapes) –